Class t.p.b.LineOnlyReceiver(protocol.Protocol):

Part of twisted.protocols.basic View Source View In Hierarchy

Known subclasses: twisted.mail.pop3.AdvancedPOP3Client, twisted.mail.pop3.POP3, twisted.mail.pop3.POP3Client, twisted.mail.smtp.SMTP, twisted.protocols.ident.IdentClient, twisted.protocols.ident.IdentServer (hide last 3 again) ... and 3 more

A protocol that receives only lines.

This is purely a speed optimisation over LineReceiver, for the cases that raw mode is known to be unnecessary.
Class VariablesdelimiterThe line-ending delimiter to use. By default this is '\r\n'.
MAX_LENGTHThe maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
134 Method dataReceived Translates bytes into lines, and calls lineReceived.
152 Method lineReceived Override this for when each line is received.
157 Method sendLine Sends a line to the other end of the connection.
162 Method lineLengthExceeded Called when the maximum line length has been reached.

Inherited from Protocol:

Line # Kind Name Docs
384 Method connectionLost Called when the connection is shut down.

Inherited from BaseProtocol (via Protocol):

Line # Kind Name Docs
341 Method makeConnection Make a connection to a transport and a server.
351 Method connectionMade Called when a connection is made.
Line # Kind Name Docs
384 Method connectionLost Called when the connection is shut down.
351 Method connectionMade Called when a connection is made.
134 Method dataReceived Translates bytes into lines, and calls lineReceived.
162 Method lineLengthExceeded Called when the maximum line length has been reached.
152 Method lineReceived Override this for when each line is received.
341 Method makeConnection Make a connection to a transport and a server.
157 Method sendLine Sends a line to the other end of the connection.
def dataReceived(self, data): (source)
Translates bytes into lines, and calls lineReceived.
def lineReceived(self, line): (source)
Override this for when each line is received.
def sendLine(self, line): (source)
Sends a line to the other end of the connection.
def lineLengthExceeded(self, line): (source)
Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way.
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.