diff -r 9fdd8dba529c -r a2aeb9b04ecc TCP/TCPStream.h --- a/TCP/TCPStream.h Sat May 24 17:25:06 2008 -0700 +++ b/TCP/TCPStream.h Sun Jun 01 14:04:22 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;