TCP/TCPStream.h
changeset 15 f723174fbc24
parent 2 9fdd8dba529c
child 18 3be241de1630
     1.1 --- a/TCP/TCPStream.h	Sat May 24 17:25:06 2008 -0700
     1.2 +++ b/TCP/TCPStream.h	Tue Jun 10 16:14:20 2008 -0700
     1.3 @@ -7,7 +7,7 @@
     1.4  //
     1.5  
     1.6  #import <Foundation/Foundation.h>
     1.7 -@class TCPConnection, TCPWriter;
     1.8 +@class TCPConnection, TCPWriter, IPAddress;
     1.9  
    1.10  
    1.11  /** Abstract superclass for data streams, used by TCPConnection. */
    1.12 @@ -20,6 +20,9 @@
    1.13  
    1.14  - (id) initWithConnection: (TCPConnection*)conn stream: (NSStream*)stream;
    1.15  
    1.16 +/** The IP address this stream is connected to. */
    1.17 +@property (readonly) IPAddress *peerAddress;
    1.18 +
    1.19  /** The connection's security level as reported by the underlying CFStream. */
    1.20  @property (readonly) NSString *securityLevel;
    1.21