Represents an RPC request and associated data. More...
Public Member Functions | |
| uint32_t | getDataLength (void) |
| Gets the size of the data payload for this request. | |
| void * | getData (void) |
| Returns a pointer to the data payload for the request. | |
| NDNodeID | getRequesterNodeID (void) |
| Returns the NodeID of the node that issued the RPC. | |
| NDRpcResponse * | createResponse (uint32_t len) |
| Creates a response to an RPC request. | |
| NDRpcResponse * | exec (void) |
| Executes RPC request. | |
| void | release (void) |
| Releases this object back to NetDog. | |
Static Public Member Functions | |
| static void * | operator new (size_t s) |
| static void | operator delete (void *p) |
Represents an RPC request and associated data.
Created by calling NDChannel::createRpcRequest()
Do not use new/delete operators with this class
| NDRpcRequest::createResponse | ( | uint32_t | len | ) |
Creates a response to an RPC request.
| len | The length of the response structure, in bytes |
| NDRpcRequest::exec | ( | void | ) |
Executes RPC request. This is a blocking call that pauses the current execution context. NetDog will still process other requests and action in the background.
Upon completion of the RPC request (when server response is recieved), function will return with an NDRpcResponse object containing the RPC server's response.
| NDRpcRequest::getData | ( | void | ) |
Returns a pointer to the data payload for the request.
This is the user-defined "parameter" that the RPC server will recieve.
| NDRpcRequest::getDataLength | ( | void | ) |
Gets the size of the data payload for this request.
| NDRpcRequest::getRequesterNodeID | ( | void | ) |
Returns the NodeID of the node that issued the RPC.
| NDRpcRequest::release | ( | void | ) |
Releases this request back to NetDog. This "frees" the request object.
1.6.1