diff -r 9fdd8dba529c -r cb9cdf247239 IPAddress.h --- a/IPAddress.h Sat May 24 17:25:06 2008 -0700 +++ b/IPAddress.h Wed Apr 22 16:45:39 2009 -0700 @@ -35,6 +35,10 @@ /** Initializes an IPAddress from a BSD struct sockaddr. */ - (id) initWithSockAddr: (const struct sockaddr*)sockaddr; +/** Returns the IP address of this host (plus the specified port number). + If multiple network interfaces are active, the main one's address is returned. */ ++ (IPAddress*) localAddressWithPort: (UInt16)port; + /** Returns the IP address of this host (with a port number of zero). If multiple network interfaces are active, the main one's address is returned. */ + (IPAddress*) localAddress;