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

net: add UdpSocket readiness and non-blocking ops #3138

Merged
merged 7 commits into from
Nov 16, 2020
Merged

Conversation

carllerche
Copy link
Member

@carllerche carllerche commented Nov 13, 2020

Adds ready(), readable(), and writable() async methods for waiting
for socket readiness. Adds try_send, try_send_to, try_recv, and
try_recv_from for performing non-blocking operations on the socket.

This is the UDP equivalent of #3130. Part of #2968.

Adds `ready()`, `readable()`, and `writable()` async methods for waiting
for socket readiness. Adds `try_send`, `try_send_to`, `try_recv`, and
`try_recv_from` for performing non-blocking operations on the socket.

This is the UDP equivalent of #3130.
@Darksonn Darksonn added A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-net Module: tokio/net labels Nov 14, 2020
tokio/src/net/tcp/stream.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
tokio/src/net/udp/socket.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-net Module: tokio/net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants