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


query_DPI_port()

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

#include <snmp_dpx.h>
#include <bsdtypes.h>
 
int query_DPI_port (host_name, community_name)
char *host_name;
char *community_name;

Parameters

host_name
Specifies a pointer to the SNMP agent host name or internet address.
community_name
Specifies a pointer to the community name to be used when making a request. The community_name constant must be specified in ASCII.

Description

The query_DPI_port() routine is used by a DPI client to determine the TCP port number that is associated with the DPI. This port number is needed to connect() to the SNMP agent. The port number is obtained through an SNMP GET request.

Return Values

An integer representing the TCP port number is returned if successful; a -1 is returned if the port cannot be determined.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014