Roxen.git / server / base_server / snmpagent.pike

version» Context lines:

Roxen.git/server/base_server/snmpagent.pike:1:   /* -  * $Id: snmpagent.pike,v 1.26 2009/05/26 14:26:15 mast Exp $ +  * $Id: snmpagent.pike,v 1.27 2012/02/14 22:20:52 jonasw Exp $    *    * The Roxen SNMP agent    * Copyright © 2001, Honza Petrous, hop@unibase.cz    *    * Author: Honza Petrous    * January 2001         RFC 1213 base MIB    system.* (all done)
Roxen.git/server/base_server/snmpagent.pike:369:    inited++;    SNMPAGENT_MSG("Initializing...");    //fd = Stdio.UDP(); //Port();      #if NO_THREADS    //SNMPAGENT_MSG("Threads don't detected. Async I/O used intstead.");    co = call_out( real_start, 1 );   #else    //SNMPAGENT_MSG("Threads detected. One thread will be created for agent processing.");    th = thread_create( real_start ); +  roxen.name_thread(th, "SNMP agent");   #endif    }    }       //! Stops processing of SNMP agent by cleaning all internal objects    void stop() {       SNMPAGENT_MSG("Shutting down...");    fd->set_read_callback(0);    catch(fd->set_blocking());
Roxen.git/server/base_server/snmpagent.pike:769:       //! External function for MIB object returning nothing    array get_null() { return OBJ_COUNT(0); }      } // SubMIBManager      // base external feeders      //! External function for MIB object 'system.sysDescr'   array get_description() { -  return OBJ_STR("Roxen Webserver SNMP agent v"+("$Revision: 1.26 $"/" ")[1]+" (devel. rel.)"); +  return OBJ_STR("Roxen Webserver SNMP agent v"+("$Revision: 1.27 $"/" ")[1]+" (devel. rel.)");   }      //! External function for MIB object 'system.sysOID'   array get_sysoid() {    return OBJ_OID(RISMIB_BASE_WEBSERVER);   }      //! External function for MIB object 'system.sysUpTime'   array get_sysuptime() {    return OBJ_TICK((time(1) - roxen->start_time)*100);