tokio-rs / tokio-core

I/O primitives and event loop for async I/O in Rust
Apache License 2.0
638 stars 115 forks source link

Udp `recv` isn't implemented as borrow #304

Closed valarauca closed 6 years ago

valarauca commented 6 years ago

I'm really confused about this API decision, do I have to open a new socket every time I receive a datagram?

The provided examples are extremely unclear. I'm just trying to listen to a stream of DGRAM messages (syslog) without responding.