wrapSocket for socket_t? As wrapFile for FILE*

Beginner-8 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 13 23:59:02 PST 2016


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.



More information about the Digitalmars-d-learn mailing list