diff -r 9d67172bb323 -r ffdaa33a408a IPAddress.h --- a/IPAddress.h Fri May 23 17:37:36 2008 -0700 +++ b/IPAddress.h Sun Jul 13 10:59:06 2008 -0700 @@ -9,7 +9,7 @@ #import -/** Represents an Internet Protocol address and port number (similar to a sockaddr_in.) +/** Represents an Internet Protocol address and port number (similar to a sockaddr_in). IPAddress itself only remembers the raw 32-bit IPv4 address; the subclass HostAddress also remembers the DNS host-name. */ @interface IPAddress : NSObject @@ -35,7 +35,7 @@ /** Initializes an IPAddress from a BSD struct sockaddr. */ - (id) initWithSockAddr: (const struct sockaddr*)sockaddr; -/** Returns the IP address of this host (with a socket number of zero.) +/** 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;