ADTF  3.18.2
cServerConnector

Connector that sends responses via IResponse. More...

Inheritance diagram for cServerConnector:
[legend]

Public Member Functions

bool StartListening ()
 Currently not implemented, returns always true. More...
 
bool StopListening ()
 Currently not implemented, returns always true. More...
 
bool SendResponse (const std::string &response, void *addInfo)
 Sets the response to addInfo which must be of type IResponse. More...
 
bool OnRequest (const std::string &request, IResponse *response)
 Called on request. More...
 
- Public Member Functions inherited from AbstractServerConnector
void ProcessRequest (const std::string &request, std::string &response)
 
void SetHandler (IClientConnectionHandler *handler)
 
IClientConnectionHandlerGetHandler ()
 

Detailed Description

Connector that sends responses via IResponse.

Definition at line 125 of file json_rpc.h.

Member Function Documentation

◆ OnRequest()

bool OnRequest ( const std::string &  request,
IResponse response 
)

Called on request.

Parameters
[in]requestThe request string
[out]responseThe response which gets set
Return values
true

◆ SendResponse()

bool SendResponse ( const std::string &  response,
void *  addInfo 
)

Sets the response to addInfo which must be of type IResponse.

Parameters
[in]responseThe response message
[out]addInfoPointer to object of type IResponse the response gets set to
Return values
true

◆ StartListening()

bool StartListening ( )
virtual

Currently not implemented, returns always true.

Return values
true

Implements AbstractServerConnector.

◆ StopListening()

bool StopListening ( )
virtual

Currently not implemented, returns always true.

Return values
true

Implements AbstractServerConnector.