SNMP_CLIENT(3)SNMP_CLIENT(3)NAME
snmp_synch_input, snmp_synch_response, snmp_synch_setup - SNMP Session
Synchronization
SYNOPSIS
cc [ flag ... ] file ... -lsnmp [ library ... ]
#include <sys/types.h>
#include <snmp/snmp.h>
int snmp_synch_input(int Operation, struct snmp_session * Session, int
RequestID, struct snmp_pdu * PDU, void * Magic);
int snmp_synch_response(struct snmp_session * Session, struct snmp_pdu
* PDU, struct snmp_pdu ** ResponseP);
void snmp_synch_setup(struct snmp_session *Session);
DESCRIPTIONsnmp_synch_input() is called when a registered session receives an
update. Operation specifies what has occured (TIMED_OUT or
RECEIVED_MESSAGE). Session is the session, RequestID is the reqid of
the PDU in question, PDU is the PDU in question, and Magic is a pointer
to the current state of that session.
snmp_synch_response() is a quick way to send PDU over session Session
and wait for a response. The response will be pointed to by Respon‐
sePDUP.
snmp_synch_setup() sets up session Session for use with these func‐
tions.
RETURN VALUESsnmp_synch_input() returns 0 upon error, 1 otherwise.
snmp_synch_response() returns either STAT_SUCCESS, STAT_TIMEOUT, or
STAT_ERROR.
RFCS
Related RFCs: 1065, 1066, 1067
Related SNMPv2 RFCs: 1901, 1902, 1902, 1904, 1905, 1906, 1907, 1908,
1909
RELATED URLS
CMU Networking Group: http://www.net.cmu.edu/
CMU SNMP Home Page: http://www.net.cmu.edu/projects/snmp
SEE ALSOsnmp_api(3), snmp_api_errors(3), snmp_client(3), snmp_coexistance(3),
snmp_error(3), snmp_extra(3), snmp_mib(3), snmp_mibii(3),
snmp_mini_client(3), snmp_msg(3), snmp_packet_dump(3), snmp_pdu(3),
snmp_sess_api(3), snmp_vars(3), snmp_version_info(3), snmp_oid(5)snmp(3)4th Berkeley Distribution Tue Sep 24 11:13:15 2002SNMP_CLIENT(3)