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

Reply via email to