MIRA
|
Binary client-side request. More...
#include <rpc/BinaryRPCBackend.h>
Public Member Functions | |
ClientRequest (ContainerType *buffer) | |
std::string | generateCallID () |
Generates a unique call ID for a client request of this backend. More... | |
void | setHeader (const std::string &callId, const std::string &service, const RPCSignature &signature) |
Write the request header consisting of the call ID, the service name and the signature of the requested method. More... | |
template<typename P > | |
void | setParameter (const P ¶m) |
Write the value of the next parameter to the request. More... | |
Binary client-side request.
The request is written into the buffer that is passed in the constructor.
|
inline |
|
inline |
Generates a unique call ID for a client request of this backend.
As call id a random id is generated.
|
inline |
Write the request header consisting of the call ID, the service name and the signature of the requested method.
This method is called first by the RPCClient when a new request is generated.
|
inline |
Write the value of the next parameter to the request.
This method is called multiple times after the setHeader() method for each parameter that is passed to the RPCClient::call() method.