z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The DPIdisconnect_from_agent() function

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

Format

#include <snmp_dpi.h>
 
void DPIdisconnect_from_agent(  /* disconnect from DPI (agent)*/
  int                  handle); /* close this connection      */

Parameters

handle
A handle as obtained with a DPIconnect_to_agent_xxxx() call.

Usage

The DPIdisconnect_from_agent() function is used at the subagent side to terminate a connection to the DPI-capable SNMP agent.

Examples

  #include <snmp_dpi.h>
  int                  handle;
 
  handle = DPIconnect_to_agent_TCP("127.0.0.1", "public");
  if (handle < 0) {
     printf("Error %d from connect\n",handle);
     exit(1);
  } /* endif */
  /* do useful stuff */
  DPIdisconnect_from_agent(handle);

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014