IPAddress.h
changeset 42 c1cf9df64c70
parent 28 732576fa8a0d
child 49 20cccc7c26ee
     1.1 --- a/IPAddress.h	Mon Apr 27 09:03:56 2009 -0700
     1.2 +++ b/IPAddress.h	Tue May 05 22:19:33 2009 -0700
     1.3 @@ -14,6 +14,7 @@
     1.4      also remembers the DNS host-name. */
     1.5  @interface IPAddress : NSObject <NSCoding, NSCopying>
     1.6  {
     1.7 +    @private
     1.8      UInt32 _ipv4;       // In network byte order (big-endian), just like struct in_addr
     1.9      UInt16 _port;       // native byte order
    1.10  }
    1.11 @@ -75,11 +76,14 @@
    1.12      An instance of HostAddress looks up its ipv4 address on the fly by calling gethostbyname. */
    1.13  @interface HostAddress : IPAddress
    1.14  {
    1.15 +    @private
    1.16      NSString *_hostname;
    1.17  }
    1.18  
    1.19  - (id) initWithHostname: (NSString*)hostname port: (UInt16)port;
    1.20  
    1.21 +/** Initializes a HostAddress from a host name, plus a sockaddr struct and a port number.
    1.22 +    (The port number overrides any port specified in the sockaddr struct.) */
    1.23  - (id) initWithHostname: (NSString*)hostname
    1.24                 sockaddr: (const struct sockaddr*)sockaddr
    1.25                     port: (UInt16)port;
    1.26 @@ -93,6 +97,7 @@
    1.27      addresses for a peer that doesn't have a stable address. */
    1.28  @interface RecentAddress : IPAddress
    1.29  {
    1.30 +    @private
    1.31      CFAbsoluteTime _lastSuccess;
    1.32      UInt32 _successes;
    1.33  }