IPAddress.h
changeset 26 cb9cdf247239
parent 2 9fdd8dba529c
child 28 732576fa8a0d
     1.1 --- a/IPAddress.h	Sat May 24 17:25:06 2008 -0700
     1.2 +++ b/IPAddress.h	Wed Apr 22 16:45:39 2009 -0700
     1.3 @@ -35,6 +35,10 @@
     1.4  /** Initializes an IPAddress from a BSD struct sockaddr. */
     1.5  - (id) initWithSockAddr: (const struct sockaddr*)sockaddr;
     1.6  
     1.7 +/** Returns the IP address of this host (plus the specified port number).
     1.8 +    If multiple network interfaces are active, the main one's address is returned. */
     1.9 ++ (IPAddress*) localAddressWithPort: (UInt16)port;
    1.10 +
    1.11  /** Returns the IP address of this host (with a port number of zero).
    1.12      If multiple network interfaces are active, the main one's address is returned. */
    1.13  + (IPAddress*) localAddress;