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.14 2005/11/26 03:58:55 nilsson Exp $ + // $Id: protocol.pike,v 1.15 2005/11/26 04:01:43 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:201:      //! 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 UDP port (optional)   //! - void create(int|void rem_port, string|void rem_addr, int|void loc_port, string|void loc_addr) { + void create(int|void rem_port, string|void rem_addr, int|void loc_port, +  string|void loc_addr) {    -  werror("%O\n", wait); -  +     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)) {    //# error ...    DWRITE("protocol.create: can't bind to the socket.\n");    ok = 0;