joyent / libuv

Go to
https://github.com/libuv/libuv
3.27k stars 653 forks source link

Add uv_udp_try_send() #1320

Closed ibc closed 10 years ago

ibc commented 10 years ago

For real-time applications in which UDP is mostly used, having uv_udp_try_send() (equivalent to uv_tcp_try_write()) would be very useful as it may avoid buffer memcpy for each send call.

With uv_udp_try_send() we can first try it and, in case it returns zero (so the socket is not ready for writing right now) we can continue with current uv_udp_send() procedures.

Could you please implement this?

saghul commented 10 years ago

Closing, continues on #1344