Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.util.NetworkingUtils Class Reference

List of all members.

Static Public Member Functions

static List< InetAddress > getAllNonLoopbackLocalIPAddresses (boolean includeIPv6Addresses)
static Socks5Proxy getSocks5ProxySafe ()
static void addProxyAddress (String ip, boolean inFront)

Detailed Description

Static networking class, dealing with local IP retrieval


Member Function Documentation

static void de.fu_berlin.inf.dpp.net.util.NetworkingUtils.addProxyAddress ( String  ip,
boolean  inFront 
) [static]

Adds a specified IP (String) to the list of addresses of the Socks5Proxy. (the target attempts the stream host addresses one by one in the order of the list)

Parameters:
ipString of the address of the Socks5Proxy (stream host)
inFrontboolean flag, if the address is to be inserted in front of the list. If false, address is added at the end of the list.
static List<InetAddress> de.fu_berlin.inf.dpp.net.util.NetworkingUtils.getAllNonLoopbackLocalIPAddresses ( boolean  includeIPv6Addresses) [static]

Retrieves all IP addresses from all non-loopback-, running network devices of the local host.
IPv4 addresses are sorted before IPv6 addresses (to let connecting to IPv4 IPs before attempting their IPv6 equivalents when iterating the List).

Parameters:
includeIPv6Addressesflag if IPv6 addresses are added to the result
Returns:
List<String> of all retrieved IP addresses
static Socks5Proxy de.fu_berlin.inf.dpp.net.util.NetworkingUtils.getSocks5ProxySafe ( ) [static]

Returns the Socks5Proxy object without changing its running state.

 All Classes Namespaces Files Functions Variables Enumerations