The C/C++ SDK provides functions that enable you to store and retrieve session state information.
The session state of an RPC plugin is analogous to the session state of an in-process adapter. An RPC Plugin's execute() function is typically called many times. Some plugins need to carry over information from one invocation to the next. We refer to this carried over information as "session state". Session state information is not carried over if the server crashes or is restarted. Unlike in-process adapters, RPC plugins do not allow you to set and get persistent state.
Parameters:
rpcctx: A pointer to the context for this particular instance of the plugin.
state: A pointer to a user-defined structure.
Returns: Nothing.
Parameters:
rpcctx: A pointer to the context for this particular instance of the plugin.
Returns: A pointer to the session state information. See the description of the C8RpcSetSessionState() function for more information about this pointer.