Interface Protocol

Interface for stream protocol.

Inherits from

Methods

Name Description
dataReceived Called when some data is received.
eofReceived Calls when the other end signals it won’t send any more data (for example by calling writeEof(), if the other end also uses asynchronous IO).
connectionLost Called when the connection is lost or closed.
connectionMade connectionMade() and connectionLost() are called exactly once per successful connection. All other callbacks will be called between those two methods, which allows for easier resource management in your protocol implementation.
pauseWriting pauseWriting() and resumeWriting() calls are paired – pauseWriting() is called once when the buffer goes strictly over the high-water mark (even if subsequent writes increases the buffer size even more), and eventually resumeWriting() is called once when the buffer size reaches the low-water mark.
resumeWriting Called when the transport’s buffer drains below the low-water mark.

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0