-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/22/2014 10:30 AM, Iñaki Baz Castillo wrote: > 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 :( >
Ah, the joy of cross-platform development :-) - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTVi02AAoJEEEOVVOum8BZXpwQALhaDvVYidMuQkGiIZQb3hC/ HSJZQpzSfaBgNmrPqTM2wB9U2+/hVa9HoEPupIZytogToWANlUEgju9Qmf9V1VEf UqMEer/Jmp6jjs2HQJBLgwn++MoWqr6FRb3tG1fYXUuqQwa7SMvSGM/8seDiDCjK HqLLaJ9KrM/OuQ7NArzAEpbVik0eYQ6SV35gGI/KqLT7qcBN7vgkGh9or2PB8Ou7 7cFs+28pNKr1kE8fsnrr/lGAPasPnZMtzrPsAmhbhSxkU/z61gYgfJDZGvZvMm0K ngJgy6hvO1IlA+9AxxdQLvTWrWMPr3DbB1dcXNklhFM8/xQl/umhGaCLw6W2p0E0 BhH7wKVOT1HmNfqLG8/mrMBPSWdGTHHzllChaiwczOeXp3E9rNhBpgBV+G6yIFrb ocD+wCULHBF+h/zLLVbHuB0m3VETp+OQOiDiF8ldC0YhzAH2NDKqtiANSMf9pXDx 4msuXN3gDgbGe4h7X70tD+EkIWyRFPGw1RWmamXmknC2d8o2WG+Fs1wGi+KJqcVs v+cpXwnZNJnwncxBGpgWmbz9/WmI+XaFFojKJPj/AWO0u/etIzsPusbae7CyZNP4 PIgUE5Ir5ABwZd/b29NpThzJcWW9pvXJB/z/1LdM/YVA/9hOdbv2E4Br9ca6iDvM 7CnFKBjP7yHjx9lvaDr6 =Plhi -----END PGP SIGNATURE----- -- 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.
