diff -r 8267d5c429c4 -r 9fdd8dba529c TCP/TCPStream.m --- a/TCP/TCPStream.m Sat May 24 13:26:02 2008 -0700 +++ b/TCP/TCPStream.m Sat May 24 17:25:06 2008 -0700 @@ -239,6 +239,15 @@ } +- (NSInteger) read: (void*)dst maxLength: (NSUInteger)maxLength +{ + NSInteger bytesRead = [(NSInputStream*)_stream read:dst maxLength: maxLength]; + if( bytesRead < 0 ) + [self _gotError]; + return bytesRead; +} + + @end