![]() |
![]() |
![]() |
Close an SNMP session
#include <sys/types.h> #include <snmp/asn1.h> #include <snmp/snmp_api.h> extern int snmp_errno int snmp_close( struct snmp_session * session );
libsnmp
The snmp_close() function closes the input session, frees any data allocated for it, dequeues any pending requests, and closes any sockets allocated for the session.
The SNMP session is identified by the structure that session points to. This structure is allocated by snmp_open().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
<snmp_api.h>
select(), snmp_free_pdu(), snmp_open(), snmp_pdu, snmp_read(), snmp_select_info(), snmp_send(), snmp_session, snmp_timeout()
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)
![]() |
![]() |
![]() |