Re: Multiple traps in a session
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 06/09/07, Edison C. <[email protected]> wrote: > ss = snmp_open (&session); > pdu = snmp_pdu_create (SNMP_MSG_TRAP); > /* First trap*/ > status = snmp_send (ss, pdu) == 0; > /* Second trap*/ > status = snmp_send (ss, pdu) == 0; $ man snmp_send Error return status from snmp_close and snmp_send is indicated by return of 0. A successful status will return a 1 for snmp_close and then request id of the packet for snmp_send. Upon successful return from snmp_send the pdu will be freed by the library. Note the final sentence. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users