do SO_REUSEADDR also when listening in windows. wine needs it and it does not hurt...
authorbeware <beware@bircd.org>
Fri, 25 May 2012 00:08:50 +0000 (00:08 +0000)
committerbeware <beware@bircd.org>
Fri, 25 May 2012 00:08:50 +0000 (00:08 +0000)
git-svn-id: file:///svnroot/lcore/trunk@115 b1de8a11-f9be-4011-bde0-cc7ace90066a

lsocket.pas

index 573644b5520fedb90206ad22c10cac6103e8ccc7..6a1ce0be96b19ea5607b76cc35568de8abcd64a2 100755 (executable)
@@ -449,6 +449,9 @@ begin
           \r
         end;\r
       end;\r
           \r
         end;\r
       end;\r
+    {$else}\r
+      SetSockOpt(fdhandlein, SOL_SOCKET, SO_REUSEADDR, 'TRUE', Length('TRUE'));\r
+\r
     {$endif}\r
     localaddr := addr;\r
     localport := port;\r
     {$endif}\r
     localaddr := addr;\r
     localport := port;\r