I would like to have a generic on_connection
callback that works with any type of server stream (pipe or tcp), but to accept the connection, you should provide an initialized client...
However uv_stream_t
is an abstract struct.
Is there an official way to do that ?
Else, can I do a switch relying on the private and undocumented uv_hundle_t.type
member ?
Or should I use my own way of knowing the type using the .data
pointer ?