Binary server-side request.
More...
#include <rpc/BinaryRPCBackend.h>
template<uint8 BinaryFormatVersion>
class mira::BinaryRPCBackendTempl< BinaryFormatVersion >::ServerRequest
Binary server-side request.
The request must have been created by the RPCClient and it must be contained in the buffer that is passed in the constructor.
- See also
- Backends
◆ ServerRequest()
◆ getHeader()
void getHeader |
( |
std::string & |
oCallId, |
|
|
std::string & |
oService |
|
) |
| |
|
inline |
Read the request header including the call ID, the service name and the signature of the method.
The call ID and the service name must be returned via the by-reference parameters. The signature should be stored internally to be able to handle the methods below. This method is called first when a new request is handled by the RPCServer.
◆ checkSignature()
Check, if the passed signature is compatible with the signature that was read from the request header in the previous getHeader() call above.
◆ getSignature()
Return the signature, that was read from the request header in the previous getHeader() call above.
◆ getParameter()
void getParameter |
( |
P & |
oParam | ) |
|
|
inline |
Read and deserializes the next parameter from the request.
This method is called multiple times for each parameter of the RPC method.
The documentation for this class was generated from the following file: