On 09/01/2014 11:54 AM, Iñaki Baz Castillo wrote:
> Hi, uv_tcp_init(), uv_udp_init(), uv_udp_open(), etc, return 0.
> 
> Then, why do they even return a value instead of being void?
> 

They just return 0 *now*, but this will change when we switch to
creating sockets early, that is, in the init functions, since you could
get EMFILE, for example.

The rule of thumb is: if any libuv function returns int, assume it can fail.

-- 
Saúl Ibarra Corretgé
bettercallsaghul.com


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to