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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SNMP.pmod/agent.pike:126:   //! @param port   //! the port number to listen for requests on   //! @param addr   //! the address to bind to for listening   //!   //! @note   //! only one agent may be bound to a port at one time   //! the agent does not currently support SMUX or AGENTX or other   //! agent multiplexing protocols.   void create(int|void port, string|void addr) { -  int p=port|SNMP_DEFAULT_PORT; +  int p=port||SNMP_DEFAULT_PORT;       if(addr)    ::create(0, 0, p, addr);    else    ::create(0, 0, p);       ::set_read_callback(request_received);    ::set_nonblocking();      }