Package PyFoam :: Package Infrastructure :: Module NetworkHelpers
[show private | hide private]
[frames | no frames]

Module PyFoam.Infrastructure.NetworkHelpers

Helpers for the networking functionality
Function Summary
  checkFoamServers(host, start, length)
Finds the port on a remote host on which Foam-Servers are running
  freeServerPort(start, length)
Finds a port that is free for serving

Imported modules:
errno, socket, time, xmlrpclib
Imported functions:
config
Function Details

checkFoamServers(host, start, length=1)

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

freeServerPort(start, length=1)

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

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net