changeset 2 | 9fdd8dba529c |
parent 1 | 8267d5c429c4 |
child 7 | 5936db2c1987 |
1.1 --- a/TCP/TCPStream.m Sat May 24 13:26:02 2008 -0700 1.2 +++ b/TCP/TCPStream.m Sat May 24 17:25:06 2008 -0700 1.3 @@ -239,6 +239,15 @@ 1.4 } 1.5 1.6 1.7 +- (NSInteger) read: (void*)dst maxLength: (NSUInteger)maxLength 1.8 +{ 1.9 + NSInteger bytesRead = [(NSInputStream*)_stream read:dst maxLength: maxLength]; 1.10 + if( bytesRead < 0 ) 1.11 + [self _gotError]; 1.12 + return bytesRead; 1.13 +} 1.14 + 1.15 + 1.16 @end 1.17 1.18