regarding the std.socket docs
Downs
default_357-line at yahoo.de
Thu May 10 13:59:39 PDT 2007
After googling for a while, I now understand the comment in the socket docs.
Please note that Linux sockets work quite differently - that comment is win32 specific. Maybe point that out?
Also, I found how to solve the problem under win32, after lots of searching - by explicitly disabling lingering and shutting down before close.
> version(Win32) {
> s.setOption(SocketOptionLevel.SOCKET, ~SocketOption.LINGER, []);
> s.shutdown(SocketShutdown.BOTH);
> }
> s.close;
Should there a FAQ for platform-dependent stuff like this? Not sure .. what do you think?
-- downs
More information about the Digitalmars-d
mailing list