TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
ServerClientRequestHandler< CLIENT, REQUEST > Class Template Referenceabstract

Network client request handler base class. More...

#include <tdme/network/udpserver/ServerClientRequestHandler.h>

Collaboration diagram for ServerClientRequestHandler< CLIENT, REQUEST >:
Collaboration graph

Public Member Functions

 ServerClientRequestHandler (const std::string &command)
 Public constructor. More...
 
virtual ~ServerClientRequestHandler ()
 Public destructor. More...
 
const string & getCommand ()
 Returns this requests handler command name. More...
 
virtual void handleRequest (CLIENT *client, REQUEST &request, const uint32_t messageId, const uint8_t retries)=0
 Request handler implementation. More...
 

Private Attributes

string command
 

Detailed Description

template<class CLIENT, class REQUEST>
class tdme::network::udpserver::ServerClientRequestHandler< CLIENT, REQUEST >

Network client request handler base class.

Author
Andreas Drewke

Definition at line 22 of file ServerClientRequestHandler.h.

Constructor & Destructor Documentation

◆ ServerClientRequestHandler()

ServerClientRequestHandler ( const std::string &  command)
inline

Public constructor.

Definition at line 27 of file ServerClientRequestHandler.h.

◆ ~ServerClientRequestHandler()

virtual ~ServerClientRequestHandler ( )
inlinevirtual

Public destructor.

Definition at line 34 of file ServerClientRequestHandler.h.

Member Function Documentation

◆ getCommand()

const string & getCommand ( )
inline

Returns this requests handler command name.

Definition at line 40 of file ServerClientRequestHandler.h.

◆ handleRequest()

virtual void handleRequest ( CLIENT *  client,
REQUEST &  request,
const uint32_t  messageId,
const uint8_t  retries 
)
pure virtual

Request handler implementation.

Parameters
clientclient
requestrequest data
messageIdmessage id (udp server only)
retriesretries (udp server only)

Member Data Documentation

◆ command

string command
private

Definition at line 53 of file ServerClientRequestHandler.h.


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