Pegasus InfoCorp: Web site design and web software development company

SNMP_API (3)

send and receive SNMP messages

SYNOPSIS

    #include <sys/types> #include <netinet/in.h> #include <sys/time.h> #include <snmp/snmp.h> #include <snmp/snmp_impl.h> #include <snmp/asn1.h> #include <snmp/snmp_api.h>

    extern int snmp_errno;

    extern int snmp_dump_packet;

    struct snmp_session *snmp_open(session) struct snmp_session *session;

    int snmp_close(session) struct snmp_session *session;

    int snmp_send(session, pdu) struct snmp_session *session; struct snmp_pdu *pdu;

    void snmp_read(fdset) fd_set *fdset;

    int snmp_select_info(numfds, fdset, timeout, block) int *numfds; fd_set *fdset; struct timeval *timeout; int *block;

    void snmp_timeout()

    void snmp_pdu_create(tag) int tag;

    void snmp_free_pdu(pdu) struct snmp_pdu *pdu;

DESCRIPTION

    Snmp_open, snmp_close, and snmp_send each take as input a pointer to an object with the following structure. In addition, snmp_open also returns a pointer to an object with this structure. This structure contains information for a set of transactions that will share similar transport characteristics.