wrapSocket for socket_t? As wrapFile for FILE*

Beginner-8 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 13 22:10:04 PST 2016


On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:

> Unless you explicitly call "close" method of Socket object, its 
> descriptor will
> stay allocated for your process/program.

Hmm, I am seen what Socket dtor contains close() too:

https://github.com/D-Programming-Language/phobos/blob/master/std/socket.d#L2659



More information about the Digitalmars-d-learn mailing list