PyFoam.Infrastructure.NetworkHelpers module

Helpers for the networking functionality

PyFoam.Infrastructure.NetworkHelpers.checkFoamServers(host, start, length=1)[source]

Finds the port on a remote host on which Foam-Servers are running :param host: the IP of the host that should be checked :param start: the port to start with :param length: the number of ports to scan :return: a list with the found ports, None if the machine is unreachable

PyFoam.Infrastructure.NetworkHelpers.freeServerPort(start, length=1)[source]

Finds a port that is free for serving :param start: the port to start with :param length: the number of ports to scan :return: number of the first free port, -1 if none is found