pysys.utils.allocport module

class pysys.utils.allocport.TCPPortOwner[source]

Bases: object

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

cleanup()[source]
pysys.utils.allocport.allocateTCPPort()[source]
pysys.utils.allocport.getEphemeralTCPPortRange()[source]

Returns the range of TCP ports the operating system uses to allocate ephemeral ports from i.e. the ports allocated for the client side of a client-server connection. Returned as a tuple, (ephemeral_low, ephemeral_high) or raises exception on error.

pysys.utils.allocport.initializePortPool()[source]

Initialize the pool of ports we can allocate TCP server ports from i.e. ports to which processes can bind to without clashes with other processes

pysys.utils.allocport.portIsInUse(port)[source]