2014-09-02 9:42 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>: > 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.
Clear. -- 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.
