Once the agent is no longer needed, uninitialize all API instances by issuing the Sm_AgentApi_UnInit() call for each API instance. This closes TCP connections to all Policy Servers.
This function does not deallocate memory. It is your responsibility to deallocate any memory you allocated for your custom agent.
Syntax
int SM_EXTERN Sm_AgentApi_UnInit ( void** ppHandle );
Parameter |
I/O |
Description |
---|---|---|
ppHandle |
I |
The address of a pointer to the handle for this API session. This is an opaque type. |
Returns
Example
See the function SmAgentExample::Sm_UnInit() in the example application smagentexample.cpp.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |