socket.SO_REUSEADDR

Ng Pheng Siong ngps at madcap.dyndns.org
Thu Apr 20 18:03:17 CEST 2000


According to Michael Ströder  <michael.stroeder at inka.de>:
>     self.socket.setsockopt(
>       socket.getprotobyname('tcp'),
>       socket.SO_REUSEADDR,1
>     )

Michael,

    self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

Cheers.

-- 
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps




More information about the Python-list mailing list