Module NetworkHelpers
source code
Helpers for the networking functionality
|
PY3 = False
|
|
__package__ = ' PyFoam.Infrastructure '
|
Imports:
config,
errno,
print_,
socket,
sys,
time,
xml,
xmlrpclib
Finds the port on a remote host on which Foam-Servers are running
- Parameters:
host - the IP of the host that should be checked
start - the port to start with
length - the number of ports to scan
- Returns:
- a list with the found ports, None if the machine is unreachable
|
Finds a port that is free for serving
- Parameters:
start - the port to start with
length - the number of ports to scan
- Returns:
- number of the first free port, -1 if none is found
|