[Previous] [Contents] [Index] [Next]

snmp_read()

Read an SNMP message

Synopsis:

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

void snmp_read( struct fd_set * fdset );

Library:

snmp3r.lib, snmp3s.lib

Description:

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

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

Classification:

SNMP

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

<snmp_api.h>, snmp_close(), snmp_open(), snmp_pdu, snmp_read(), snmp_select_info(), snmp_send(), snmp_session, snmp_timeout()

select() in the C Library Reference

RFC 1157, FAQ in Internet newsgroup comp.protocols.snmp

Marshall T. Rose, The Simple Book: An Introduction to Internet Management, Revised 2nd ed. (Prentice-Hall, 1996, ISBN 0-13-451659-1)


[Previous] [Contents] [Index] [Next]