Connector that sends responses via IResponse.
More...
Connector that sends responses via IResponse.
Definition at line 125 of file json_rpc.h.
◆ OnRequest()
bool OnRequest |
( |
const std::string & |
request, |
|
|
IResponse * |
response |
|
) |
| |
Called on request.
- Parameters
-
[in] | request | The request string |
[out] | response | The response which gets set |
- Return values
-
◆ SendResponse()
bool SendResponse |
( |
const std::string & |
response, |
|
|
void * |
addInfo |
|
) |
| |
Sets the response
to addInfo
which must be of type IResponse.
- Parameters
-
[in] | response | The response message |
[out] | addInfo | Pointer to object of type IResponse the response gets set to |
- Return values
-
◆ StartListening()
◆ StopListening()