2014-04-23 17:37 GMT+02:00 Iñaki Baz Castillo <[email protected]>:
> 2014-04-23 17:22 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>:
>> I don't think it's a bug, you are abusing the API :-) Now, I did spot
>> something in the code which might explain it. The sockaddr struct is
>> created on the stack, and my guess is that Linux is not populating it
>> so you get whatever was there.
>>
>> Please add a printf here:
>> https://github.com/joyent/libuv/blob/master/src/unix/udp.c#L228 and
>> print the content of h.msg_namelen. If my guess is correct you'll get
>> 0 on Linux.
>
> You are right. It is 0 in Linux, 16 in OSX.
>
> The question is: why is it not populated by Linux??

BTW: the socket was generated with socketpair() so I understand that
the field sockaddr_un->sun_path is an empty string (given that there
was no bind for this socket). But the sun_family must be 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