diff -r b3254a2f6d6c -r de59ce19f42e IPAddress.h --- a/IPAddress.h Wed Apr 29 13:57:10 2009 -0700 +++ b/IPAddress.h Tue Jun 23 11:44:30 2009 -0700 @@ -25,6 +25,12 @@ be returned instead. */ - (id) initWithHostname: (NSString*)hostname port: (UInt16)port; +/** Creates an IPAddress from a host name (which may be a DNS name or dotted-quad numeric form) + and port number. + If the hostname is not in dotted-quad form, an instance of the subclass HostAddress will + be returned instead. */ ++ (IPAddress*) addressWithHostname: (NSString*)hostname port: (UInt16)port; + /** Initializes an IPAddress from a raw IPv4 address (in network byte order, i.e. big-endian) and port number (in native byte order) */ - (id) initWithIPv4: (UInt32)ipv4 port: (UInt16)port;