On 02/14/2016 12:03 AM, Beginner-8 wrote:
Uh, wait! Forgot about that Socket calls .close() in its dtor

Try duplicating the socket handle before handing it over to Socket (not compiled nor tested):

import core.sys.posix.unistd;

    Socket(dup(myHandle))

I think socket handles are duplicatable :p things. Only the last close() would actually close the socket.

Ali

Reply via email to