BaseProtocol

Common interface for protocol interfaces.

Usually user implements protocols that derived from BaseProtocol like Protocol or ProcessProtocol.

The only case when BaseProtocol should be implemented directly is write-only transport like write pipe

Members

Functions

connectionLost
void connectionLost(Exception exception)

Called when the connection is lost or closed.

connectionMade
void connectionMade(BaseTransport transport)

Called when a connection is made.

pauseWriting
void pauseWriting()

Called when the transport’s buffer goes over the high-water mark.

resumeWriting
void resumeWriting()

Called when the transport’s buffer drains below the low-water mark.

Meta