Package pysys :: Package utils :: Module allocport
[hide private]
[frames] | no frames]

Module allocport

source code

Classes [hide private]
  TCPPortOwner
Functions [hide private]
 
getEphemeralTCPPortRange()
Returns the range of TCP ports the operating system uses to allocate ephemeral ports from i.e.
source code
 
initializePortPool()
Initialize the pool of ports we can allocate TCP server ports from i.e.
source code
 
portIsInUse(port) source code
 
allocateTCPPort() source code
Variables [hide private]
  tcpServerPortPool = deque([55328, 50327, 59244, 65116, 62303, ...
  __package__ = 'pysys.utils'
Function Details [hide private]

getEphemeralTCPPortRange()

source code 

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.

initializePortPool()

source code 

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


Variables Details [hide private]

tcpServerPortPool

Value:
deque([55328, 50327, 59244, 65116, 62303, 63341, 58343, 62821, 55840, \
59264, 51686, 54274, 63296, 53672, 50400, 52435, 52337, 59039, 58222, \
65510, 56211, 54069, 50908, 60212, 55903, 64483, 65263, 59894, 64869, \
53375, 65472, 63582, 58205, 61733, 54997, 59667, 57098, 54192, 58998, \
57982, 50138, 57169, 53735, 63979, 56435, 59012, 50680, 53265, 57912, \
54431, 55524, 55424, 63462, 52876, 52795, 59835, 58628, 64077, 65486, \
52482, 51044, 52185, 53289, 52023, 52734, 53786, 62580, 61068, 52683, \
57496, 53175, 65517, 60460, 61279, 58228, 58784, 58154, 57992, 58001, \
...