pike.git / lib / modules / Protocols.pmod / SNMP.pmod / protocol.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:10:   //! 1155-7 : v1   //!   //! 1901-4 : v2/community (Bulk ops aren't implemented!)   //!   //! planned:   //! 2742 : agentX   //!   //! 2570 : v3 description   //!    - // $Id: protocol.pike,v 1.12 2003/09/01 16:35:09 nilsson Exp $ + // $Id: protocol.pike,v 1.13 2004/01/11 00:46:54 nilsson Exp $         #include "snmp_globals.h"   #include "snmp_errors.h"      #if 1   // --- ASN.1 hack   class asn1_application_octet_string   {    inherit Standards.ASN1.Types.asn1_octet_string;
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:217:       local_host = (!loc_addr || !sizeof(loc_addr)) ? SNMP_DEFAULT_LOCHOST : loc_addr;    if(stringp(rem_addr) && sizeof(rem_addr)) remote_host = rem_addr;    if(rem_port) remote_port = rem_port;       if (!snmp::bind(lport, local_host)) {    //# error ...    DWRITE("protocol.create: can't bind to the socket.\n");    ok = 0;    if(con_fail) -  con_fail(this_object(), @extra_args); +  con_fail(this, @extra_args);    }       if(snmp_errno)    THROW(({"Failed to bind to SNMP port.\n", backtrace()}));    DWRITE("protocol.bind: success!\n");       DWRITE(sprintf("protocol.create: local adress:port bound: [%s:%d].\n", local_host, lport));      }