# LineObject class reference

Revision 1
November 8, 2003
Andrew Ruder
Software documentation for the LineObject class
LineObject.h
NetObject
LineObject is used for line-buffered connections (end in \r\n or just \n). To use, simply override lineReceived: in a subclass of LineObject. By default, LineObject does absolutely nothing with lineReceived except throw the line away. Use line object if you simply want line-buffered input. This can be used on IRC, telnet, etc.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Description forthcoming.
connectionEstablished:
aTransport
Initializes data and retains aTransport aTransport should conform to the <NetTransport> protocol.
connectionLost
Cleans up the instance variables and releases the transport. If/when the transport is dealloc'd, the connection will be closed.
dataReceived:
newData
Adds the data to a buffer. Then calls -lineReceived: for all full lines currently in the buffer. Don't override this, override -lineReceived: .
lineReceived:
aLine
aLine
contains a full line of text (without the ending newline)
transport
Returns the transport