IPAddress.h
changeset 55 f240f9023393
parent 32 b3254a2f6d6c
child 59 46c7844cb592
     1.1 --- a/IPAddress.h	Wed Apr 29 13:57:10 2009 -0700
     1.2 +++ b/IPAddress.h	Thu Jul 02 17:51:35 2009 -0700
     1.3 @@ -25,6 +25,12 @@
     1.4      be returned instead. */
     1.5  - (id) initWithHostname: (NSString*)hostname port: (UInt16)port;
     1.6  
     1.7 +/** Creates an IPAddress from a host name (which may be a DNS name or dotted-quad numeric form)
     1.8 +    and port number.
     1.9 +    If the hostname is not in dotted-quad form, an instance of the subclass HostAddress will
    1.10 +    be returned instead. */
    1.11 ++ (IPAddress*) addressWithHostname: (NSString*)hostname port: (UInt16)port;
    1.12 +
    1.13  /** Initializes an IPAddress from a raw IPv4 address (in network byte order, i.e. big-endian)
    1.14      and port number (in native byte order) */
    1.15  - (id) initWithIPv4: (UInt32)ipv4 port: (UInt16)port;