On 15/03/2019 03:56, Iñaki Baz Castillo wrote: > On Fri, 15 Mar 2019 at 03:50, Iñaki Baz Castillo <[email protected]> wrote: >> I'm setting the corresponding uv_connection_cb in the second file, I >> cannot set it in the first one (in the "helper"). Is there any >> workaround for this? I mean something such as doing both uv_tcp_bind() >> and uv_listen() in the "helper" and, if ok, un-listen the uv_handle >> and return it (so the second file can run uv_listen() with it). > > 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. -- Saúl -- 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 https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
