snmp_read()

Read an SNMP message

Synopsis:

#include <sys/select.h>
#include <snmp/snmp_impl.h>

void snmp_read( struct fd_set * fdset );

Arguments:

fdset
A pointer to a fd_set structure that contains all the file descriptors that you want to read from.

Library:

libsnmp

Use the -l snmp option to qcc to link against this library.

Description:

The snmp_read() function reads a packet from each socket and its set of file descriptors and parses the packet. The resulting Protocol Data Unit (PDU) is passed to the callback routine for the session (see snmp_session); if the callback returns successfully, the PDU and its request are deleted.

For information on asynchronous SNMP transactions, see snmp_select_info().

Based on:

Classification:

SNMP

Safety:  
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread No