2014-04-22 8:49 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>:
> Hum. Maybe it has to do with the fact that SOCK_DGRAM will create a
> connection-less socketpair? That is, both know what the other end is,
> but it's not connected as in TCP. So, what your test seems to show is
> that you can only detect failure when you try to send something over
> the connection.

Most probably. It seems that, when in SOCK_DGRAM, a side just realizes
of the closed status of the peer when attempting to send data to it
(something like when a sending UDP datagram receives a ICMP
"unreachable port" notification).



> You probably want to give SOCK_SEQPACKET a try, but AFAIK is a bit
> more cumbersome to use.

No SOCK_SEQPACKET in OSX, nor for IP (SCTP) nor for AF_UNIX :(




-- 
Iñaki Baz Castillo
<[email protected]>

-- 
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.

Reply via email to