On Fri, 15 Mar 2019 at 14:49, Saúl Ibarra Corretgé <sag...@gmail.com> wrote: > > On 15/03/2019 14:35, Iñaki Baz Castillo wrote: > > On Fri, 15 Mar 2019 at 12:35, Saúl Ibarra Corretgé <sag...@gmail.com> wrote: > >>> Can I call twice to uv_listen() with different uv_connection_cb? That > >>> would make me happy :) > >> > >> You can, but the second time will fail if you were already listening. > > > > I just confirm that it does not fail at all. Note: I'm calling > > uv_listen() twice in the same loop iteration. > > > > > > Yeah, my bad. I mistakenly thought listen(2) would give EALREADY error, > but that's connect(2).
Ok, so then it's safe to call uv_listen() twice. Thanks :) -- Iñaki Baz Castillo <i...@aliax.net> -- 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 libuv+unsubscr...@googlegroups.com. To post to this group, send email to libuv@googlegroups.com. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.