Syntax
#inlcude <snmp_dpi.h>
int DPIconnect_to_agent_SHM( /* Connect to DPI Shared Mem */
int queue_id);/* target (agent) queue id */
Parameters
queu_id
Return Values
If successful, a positive integer that represents the connection is returned. It is to be used as a handle in subsequent calls to DPI transport-related functions.
If failure, a negative integer is returned. It indicates the kind of error that occurred. See Return Codes from DPI Transport-Related Functions for a list of possible error codes.
Description
The DPIconnect_to_agent_SHM() function is used at the subagent side to setup a connection (via SHared Memory) to the DPI capable SNMP agent.
Examples
#include <snmp_dpi.h>int handle;
handle = DPIconnect_to_agent_SHM(1);
if (handle < 0) {
printf("Error %d from connect\n",handle);
exit(1);
} /* endif */
Related Information