Protocol

Interface for stream protocol.

Members

Functions

dataReceived
void dataReceived(const(void)[] data)

Called when some data is received.

eofReceived
bool eofReceived()

Calls when the other end signals it won’t send any more data (for example by calling $(D_PSYMBOL writeEof()), if the other end also uses asynchronous IO).

Inherited Members

From BaseProtocol

connectionMade
void connectionMade(BaseTransport transport)

Called when a connection is made.

connectionLost
void connectionLost(Exception exception)

Called when the connection is lost or closed.

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