#include <connection.h>
Inheritance diagram for TPProto::Connection:

Public Member Functions | |
| void | setSocket (TPSocket *sock) |
| void | setEventLoop (EventLoop *el) |
| virtual void | readyToRead ()=0 |
| Called when the socket has data ready to be read. | |
| virtual void | readyToSend ()=0 |
| Called when the socket is ready for data to be sent to it. | |
Protected Attributes | |
| TPSocket * | socket |
| The TPSocket this connection is connected to. | |
| EventLoop * | eventloop |
| The EventLoop to use. | |
The protocol releated to the this connection and socket is implemented in a subclass of Connection.
| virtual void TPProto::Connection::readyToRead | ( | ) | [pure virtual] |
Called when the socket has data ready to be read.
Protocol reading entry point is here. Non-blocking sockets should be used.
Implemented in TPProto::FrameCodec.
| virtual void TPProto::Connection::readyToSend | ( | ) | [pure virtual] |
Called when the socket is ready for data to be sent to it.
This can be used to send queued data when non-blocking writes say they would have blocked.
Implemented in TPProto::FrameCodec.
1.5.1