On Sunday, 14 February 2016 at 07:33:11 UTC, Ali Çehreli wrote:
Maybe another option is to duplicate the socket handle
Sure!Nevertheless, it is need method for socket_t duplication. Something like:
class Socket { ... static Socket dup(socket_t) ... }
before giving it to Socket but I am failing to find a definitive answer or an example.