TCP/TCPStream.h
changeset 4 2bd9d60a2c46
parent 0 9d67172bb323
child 7 5936db2c1987
     1.1 --- a/TCP/TCPStream.h	Fri May 23 17:37:36 2008 -0700
     1.2 +++ b/TCP/TCPStream.h	Sun May 25 10:28:26 2008 -0700
     1.3 @@ -10,7 +10,7 @@
     1.4  @class TCPConnection, TCPWriter;
     1.5  
     1.6  
     1.7 -/** INTERNAL abstract superclass for data streams, used by TCPConnection. */
     1.8 +/** Abstract superclass for data streams, used by TCPConnection. */
     1.9  @interface TCPStream : NSObject 
    1.10  {
    1.11      TCPConnection *_conn;
    1.12 @@ -55,8 +55,15 @@
    1.13  
    1.14  /** Input stream for a TCPConnection. */
    1.15  @interface TCPReader : TCPStream
    1.16 +
    1.17  /** The connection's TCPWriter. */
    1.18  @property (readonly) TCPWriter *writer;
    1.19 +
    1.20 +/** Reads bytes from the stream, like the corresponding method of NSInputStream.
    1.21 +    The number of bytes actually read is returned, or zero if no data is available.
    1.22 +    If an error occurs, it will call its -_gotError method, and return a negative number. */
    1.23 +- (NSInteger) read: (void*)dst maxLength: (NSUInteger)maxLength;
    1.24 +
    1.25  @end
    1.26  
    1.27