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.7 2002/12/01 18:09:33 mast Exp $ + // $Id: protocol.pike,v 1.8 2002/12/03 09:41:27 hop 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:176:   int next_id = 1;      //! SNMP version   //!   //! currently version 1 and 2 are supported.   int snmp_version = SNMP_DEFAULT_VERSION;      //! SNMP community string   //!   //! should be set to the appropriate SNMP community before sending a request. + //! + //! @note + //! Set to "public" by default.   string snmp_community = SNMP_DEFAULT_COMMUNITY;      int snmp_errno = SNMP_SUCCESS;   int ok;      //:   //: msg pool   //:   mapping msgpool = ([]);   
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:199:   function con_ok, con_fail;   array extra_args;      //! create a new SNMP protocol object   //!   //! @param rem_port   //! @param rem_addr   //! remote address and UDP port (optional)   //! @param loc_port   //! @param loc_addr - //! local address and UDB port (optional) + //! local address and UDP port (optional)   //!   void create(int|void rem_port, string|void rem_addr, int|void loc_port, string|void loc_addr) {       int lport = loc_port;       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)) {