Wolframe, 0.0.3

_Wolframe::net::ConnectionHandler Class Referenceabstract

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 &)
 
ConnectionHandleroperator= (const ConnectionHandler &)
 

Friends

template<typename socketType >
class ConnectionBase
 

Detailed Description

The common handler for the connection status.

Member Enumeration Documentation

Enumerator
TIMEOUT 
TERMINATE 
END_OF_FILE 
OPERATION_CANCELLED 
BROKEN_PIPE 
CONNECTION_RESET 
UNKNOWN_ERROR 

Constructor & Destructor Documentation

_Wolframe::net::ConnectionHandler::ConnectionHandler ( )
inlineprotected
virtual _Wolframe::net::ConnectionHandler::~ConnectionHandler ( )
inlineprotectedvirtual
_Wolframe::net::ConnectionHandler::ConnectionHandler ( const ConnectionHandler )
private

Member Function Documentation

virtual void _Wolframe::net::ConnectionHandler::networkInput ( const void *  buffer,
std::size_t  bytesTransferred 
)
pure virtual

Signal the incoming data. buffer is the buffer given to the read operation.

virtual const NetworkOperation _Wolframe::net::ConnectionHandler::nextOperation ( )
pure virtual

What should the network do next.

ConnectionHandler& _Wolframe::net::ConnectionHandler::operator= ( const ConnectionHandler )
private
virtual void _Wolframe::net::ConnectionHandler::setPeer ( const RemoteEndpointR remote)
pure virtual

Set the remote peer. The connection is up now.

virtual void _Wolframe::net::ConnectionHandler::signalOccured ( NetworkSignal  )
inlinevirtual

A network error, timeout or signal occured.

Friends And Related Function Documentation

template<typename socketType >
friend class ConnectionBase
friend

The documentation for this class was generated from the following file: