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

Jeff Epler jepler at unpythonic.net
Tue Aug 10 15:26:13 CEST 2004


Do any systems *but* win32 have SO_EXLUSIVEADDRUSE ?  (and if they do,
is it better than SO_REUSEADDR for the same reasons it is on win32?)

.. so why not write
    if hasattr(socket, 'SO_EXCLUSIVEADDRUSE'):
        reuse_constant = socket.SO_EXCLUSIVEADDRUSE
    else:
        reuse_constant = socket.SO_REUSEADDR

SO_EXCLUSIVEADDRUSE sounds like the exact opposite of SO_REUSEADDR,
according to a page I found when trying to find out whether any other
platform has SO_EXCLUSEIVEADDRUSE:
    


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant