diff -r 8267d5c429c4 -r 2c4bb6968927 TCP/TCPStream.m --- a/TCP/TCPStream.m Sat May 24 13:26:02 2008 -0700 +++ b/TCP/TCPStream.m Sun May 25 12:32:47 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