diff -r 9fdd8dba529c -r 5936db2c1987 TCP/TCPStream.h --- a/TCP/TCPStream.h Sat May 24 17:25:06 2008 -0700 +++ b/TCP/TCPStream.h Sun May 25 13:43:03 2008 -0700 @@ -7,7 +7,7 @@ // #import -@class TCPConnection, TCPWriter; +@class TCPConnection, TCPWriter, IPAddress; /** Abstract superclass for data streams, used by TCPConnection. */ @@ -20,6 +20,9 @@ - (id) initWithConnection: (TCPConnection*)conn stream: (NSStream*)stream; +/** The IP address this stream is connected to. */ +@property (readonly) IPAddress *peerAddress; + /** The connection's security level as reported by the underlying CFStream. */ @property (readonly) NSString *securityLevel;