diff -r 5936db2c1987 -r b3254a2f6d6c TCP/TCPStream.h --- a/TCP/TCPStream.h Sun May 25 13:43:03 2008 -0700 +++ b/TCP/TCPStream.h Wed Apr 29 13:57:10 2009 -0700 @@ -47,6 +47,9 @@ /** Does the stream have pending data to read or write, that prevents it from closing? */ @property (readonly) BOOL isBusy; +/** Returns NO if the stream is ready to close (-close has been called and -isBusy is NO.) */ +@property (readonly) BOOL isActive; + /** Generic accessor for CFStream/NSStream properties. */ - (id) propertyForKey: (CFStringRef)cfStreamProperty;