diff -r 5936db2c1987 -r 0fa1fcf07d87 TCP/TCPStream.h --- a/TCP/TCPStream.h Sun May 25 13:43:03 2008 -0700 +++ b/TCP/TCPStream.h Tue May 05 15:40:36 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;