From: beware Date: Fri, 25 May 2012 00:08:50 +0000 (+0000) Subject: do SO_REUSEADDR also when listening in windows. wine needs it and it does not hurt... X-Git-Url: http://www.lcore.org/git/lcore.git/commitdiff_plain/66fc75f9dc1f2fe4e0f478fb76a14492f4ab1b82 do SO_REUSEADDR also when listening in windows. wine needs it and it does not hurt in windows. git-svn-id: file:///svnroot/lcore/trunk@115 b1de8a11-f9be-4011-bde0-cc7ace90066a --- diff --git a/lsocket.pas b/lsocket.pas index 573644b..6a1ce0b 100755 --- a/lsocket.pas +++ b/lsocket.pas @@ -449,6 +449,9 @@ begin end; end; + {$else} + SetSockOpt(fdhandlein, SOL_SOCKET, SO_REUSEADDR, 'TRUE', Length('TRUE')); + {$endif} localaddr := addr; localport := port;