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.
For real-time applications in which UDP is mostly used, having
uv_udp_try_send()
(equivalent touv_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 currentuv_udp_send()
procedures.Could you please implement this?