KrisLibrary
1.0.0
|
A base class for a transport protocol for unstructured data. More...
#include <AsyncIO.h>
Public Member Functions | |
virtual bool | Start () |
Subclasses – can the object read? | |
virtual bool | Stop () |
virtual bool | ReadReady () |
Subclasses – can the object read? | |
virtual bool | WriteReady () |
Subclasses – can the object write? | |
virtual const std::string * | DoRead () |
virtual bool | DoWrite (const char *msg, int length) |
virtual bool | DoWrite (const char *msg) |
virtual bool | DoWrite (const std::string &msg) |
A base class for a transport protocol for unstructured data.
|
inlinevirtual |
Subclasses – in thread, do some I/O and processing (which may block), return the payload message. If NULL is returned, there is some error and the thread quits
Reimplemented in SocketServerTransport, SocketClientTransport, and StreamTransport.
|
inlinevirtual |
Subclasses – in thread, do some I/O and processing (which may block) If false is returned, there is some error and the caller should quit or reopen the connection.
Reimplemented in SocketServerTransport, SocketClientTransport, and StreamTransport.
|
inlinevirtual |
|
inlinevirtual |