A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047269.html below:

[Python-Dev] Asyncore .set_reuse_addr() on Windows

[Python-Dev] Asyncore .set_reuse_addr() on Windows [Python-Dev] Asyncore .set_reuse_addr() on WindowsA.M. Kuchling amk at amk.ca
Sat Aug 7 16:23:27 CEST 2004
A recent patch makes asyncore.py's .set_reuse_addr method work on Windows, 
which needs a different socket option:

            if sys.platform == 'win32':
                reuse_constant = socket.SO_EXCLUSIVEADDRUSE
            else:
                reuse_constant = socket.SO_REUSEADDR

Question: should the condition be sys.platform.startswith('win') for
the sake of win64, or other Windows variants?  (I don't know which
values sys.platform can have on Windows.)

--amk
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4