The common handler for the connection status. More...
#include <connectionHandler.hpp>
Public Types | |
enum | NetworkSignal { TIMEOUT, TERMINATE, END_OF_FILE, OPERATION_CANCELLED, BROKEN_PIPE, CONNECTION_RESET, UNKNOWN_ERROR } |
Public Member Functions | |
virtual void | networkInput (const void *buffer, std::size_t bytesTransferred)=0 |
Signal the incoming data. buffer is the buffer given to the read operation. More... | |
virtual const NetworkOperation | nextOperation ()=0 |
What should the network do next. More... | |
virtual void | signalOccured (NetworkSignal) |
A network error, timeout or signal occured. More... | |
virtual void | setPeer (const RemoteEndpointR &remote)=0 |
Set the remote peer. The connection is up now. More... | |
Protected Member Functions | |
ConnectionHandler () | |
virtual | ~ConnectionHandler () |
Private Member Functions | |
ConnectionHandler (const ConnectionHandler &) | |
ConnectionHandler & | operator= (const ConnectionHandler &) |
Friends | |
template<typename socketType > | |
class | ConnectionBase |
The common handler for the connection status.
|
inlineprotected |
|
inlineprotectedvirtual |
|
private |
|
pure virtual |
Signal the incoming data. buffer is the buffer given to the read operation.
|
pure virtual |
What should the network do next.
|
private |
|
pure virtual |
Set the remote peer. The connection is up now.
|
inlinevirtual |
A network error, timeout or signal occured.
|
friend |
Copyright © 2014 - Project Wolframe - All Rights Reserved