Ahoi!
On 4/29/14 6:22 PM, Iñaki Baz Castillo wrote:
Hi,
In which cases may uv_udp_send() return error? One case coming to my
mind (tested with other Reactor based libraries) happens when the
socket binds into an IPv4 interface/address and we call sendmsg() by
passing a IPv6 or maybe a IPv4 address that, due to local network
routing policy, is not reachable from the binding interface/address.
In those cases, would uv_udp_send() *directly* return an error? or
would it be done in the send callback?
The only cases in which uv_udp_send would return an error (on unix) are:
- you pass the wrong address family to the address (has to be AF_INET or
AF_INET6)
- malloc-ing the buffer structs fails
Every other failure will be reported in the callback.
--
Saúl Ibarra Corretgé
http://bettercallsaghul.com
--
You received this message because you are subscribed to the Google Groups
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.