Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Eio_mock using datagram sockets #372

Open
cdaringe opened this issue Nov 20, 2022 · 2 comments
Open

docs: Eio_mock using datagram sockets #372

cdaringe opened this issue Nov 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@cdaringe
Copy link

problem

i am struggling to discover how to write meaningful tests using a mock net and udp.

discussion

there are omd examples verifying tcp streams, perhaps they could be replicated, tuned for UDP?

@talex5
Copy link
Collaborator

talex5 commented Nov 21, 2022

There's no mock UDP socket in eio.mock at the moment. I found an old branch adding one and rebased it: https://github.com/ocaml-multicore/eio/compare/main...talex5:eio:mock_datagram?expand=1

Is that useful for you?

@cdaringe
Copy link
Author

Thanks! I’ll probably have to go back and read the object stuff in OCaml. I skip it every time it comes up, but it would have been vrry useful recently. I appreciate the response!

@talex5 talex5 added the enhancement New feature or request label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants