On Sat, Apr 9, 2016 at 10:30 PM, Frank <[email protected]> wrote: > Hello, > > Can I reconnect uv_tcp_t objects? > > Lets say we have an established TCP connection (uv_tcp_connect > succeeded) and later the connection is dropped (e.g. peer closed it) > can I reuse the uv_tcp_t object i.e. call uv_tcp_connect on it again? > > I can imagine this is highly platform specific and it might be outside > the scope of libuv. > > Thanks, > Frank
Libuv does not explicitly prohibit it - no error is returned when you call uv_tcp_connect() twice - but it's not supported either and it's almost never safe nor portable to do so. -- 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.
