Package foolscap :: Module util
[hide private]
[frames] | no frames]

Module util

source code

Classes [hide private]
  AsyncAND
Like DeferredList, but results are discarded and failures handled in a more convenient fashion.
Functions [hide private]
 
get_local_ip_for(target='A.ROOT-SERVERS.NET')
Find out what our IP address is for use by a given target.
source code
Function Details [hide private]

get_local_ip_for(target='A.ROOT-SERVERS.NET')

source code 

Find out what our IP address is for use by a given target.

Returns:
the IP address as a dotted-quad string which could be used by to connect to us. It might work for them, it might not. If there is no suitable address (perhaps we don't currently have an externally-visible interface), this will return None.