Clear. Thanks.

2014-06-22 17:22 GMT+02:00 Fedor Indutny <[email protected]>:
> Yes, this is correct. :)
>
>
> On Sun, Jun 22, 2014 at 4:13 PM, Iñaki Baz Castillo <[email protected]> wrote:
>>
>> Thanks. Anyhow, I do need to use ntohs() if I want to examine a
>> sockaddr_in passed to libuv, right? this is:
>>
>> uv_udp_getsockname(tcp_handle, (struct sockaddr*)&addr, &len);
>> port = ntohs(((struct sockaddr_in*)&addr)->sin_port);
>> printf("local port is %d\n", port);
>>
>> Am I right?
>>
>> Thanks a lot.
>>
>>
>> 2014-06-22 17:06 GMT+02:00 Fedor Indutny <[email protected]>:
>> > Nope, I don't think that there are any calls that require you to swap
>> > endians.
>> >
>> >
>> > On Sun, Jun 22, 2014 at 3:51 PM, Iñaki Baz Castillo <[email protected]>
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> Do I need to set the port using htons(port) as second argument for
>> >> uv_ip4/6_addr() functions? If so, are there other UV calls in which I
>> >> should take care of big/little endian stuff?
>> >>
>> >> Thanks a lot.
>> >>
>> >> --
>> >> 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.
>> >
>> >
>> > --
>> > 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.
>>
>>
>>
>> --
>> 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.
>
>
> --
> 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.



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