NDRpcResponse Class Reference

Represents an RPC response and associated data. More...

List of all members.

Public Member Functions

uint32_t getDataLength (void)
 Gets the size of the data payload for this response.
void * getData (void)
 Returns a pointer to the data payload for the response.
NDNodeID getRequesterNodeID (void)
 Returns the NodeID of the node that issued the RPC.
void release (void)
 Releases this RPC reponse back to NetDog.

Static Public Member Functions

static void * operator new (size_t s)
static void operator delete (void *p)

Detailed Description

Represents an RPC response and associated data.

Created internally by NetDog, and passed to the user.

Do not use new/delete operators with this class


Member Function Documentation

NDRpcResponse::getData ( void   ) 

Returns a pointer to the data payload for the response.

This is the "result" that the RPC server will send back to the caller. This is purely user defined.

Returns:
Pointer to data payload
NDRpcResponse::getDataLength ( void   ) 

Gets the size of the data payload for this response.

Returns:
Size of payload in bytes
NDRpcResponse::getRequesterNodeID ( void   ) 

Returns the NodeID of the node that issued the RPC.

Returns:
NodeID of the RPC caller.
NDRpcResponse::release ( void   ) 

Releases this RPC response back to NetDog. This "frees" the response object.

Returns:
(void)

Generated on Wed Jul 21 18:14:48 2010 for nd2 by  doxygen 1.6.1