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

Thanks a lot.

BTW sorry for also reporting the issue in the Github tracker. After
sending the mail I considered the issue a bug.


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