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);

DESCRIPTION
snmp_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 ResponsePDUP.

snmp_synch_setup() sets up session Session for use with these functions.

RETURN VALUES
snmp_synch_input() returns 0 upon error, 1 otherwise.

snmp_synch_response() returns either STAT_SUCCESS, STAT_TIMEOUT, or STAT_ERROR.