Roxen.git / server / etc / modules / SNMP.pmod

version» Context lines:

Roxen.git/server/etc/modules/SNMP.pmod:47:   class OwnerInfo   {    Configuration conf;    RoxenModule module;   }      // ASN1 datatypes.      class app_integer   { -  inherit Standards.ASN1.Types.asn1_integer : integer; +  inherit Standards.ASN1.Types.Integer : integer;    inherit Documentation : doc;    inherit Updateable : update;    inherit OwnerInfo : owner_info;    constant type_name = "APPLICATION INTEGER";   #if __VERSION__ < 8.0    constant cls = 1;    constant tag = 0;   #else    int cls = 1;    int tag = 0;
Roxen.git/server/etc/modules/SNMP.pmod:82:    {    switch(t) {    case 's': return (string)value;    default: return sprintf("%s[%d][%d](%O)", type_name, cls, tag, value);    }    }   }      class app_octet_string   { -  inherit Standards.ASN1.Types.asn1_octet_string : octet_string; +  inherit Standards.ASN1.Types.OctetString : octet_string;    inherit Documentation : doc;    inherit Updateable : update;    inherit OwnerInfo : owner_info;    constant type_name = "APPLICATION OCTET_STRING";   #if __VERSION__ < 8.0    constant cls = 1;    constant tag = 0;   #else    int cls = 1;    int tag = 0;
Roxen.git/server/etc/modules/SNMP.pmod:117:    {    switch(t) {    case 's': return (string)value;    default: return sprintf("%s[%d][%d](%O)", type_name, cls, tag, value);    }    }   }      class OID   { -  inherit Standards.ASN1.Types.asn1_identifier : identifier; +  inherit Standards.ASN1.Types.Identifier : identifier;    inherit Documentation : doc;    inherit OwnerInfo : owner_info;    constant type_name = "OID";    protected void create(array(int) oid, string|void name,    string|void doc_string)    {    identifier::create(@oid);    doc::create(name, doc_string);    }    protected string _sprintf(int t)
Roxen.git/server/etc/modules/SNMP.pmod:140:    case 's': return ((array(string))id) * ".";    default: return sprintf("%s[%d][%d](%O)",    type_name, cls, tag,    ((array(string))id) * ".");    }    }   }      class Integer   { -  inherit Standards.ASN1.Types.asn1_integer : integer; +  inherit Standards.ASN1.Types.Integer : integer;    inherit Documentation : doc;    inherit Updateable : update;    inherit OwnerInfo : owner_info;    constant type_name = "INTEGER";    protected void create(int|function(:int) val, string|void name,    string|void doc_string)    {    if (intp(val)) {    update::create(UNDEFINED);    integer::create(val);
Roxen.git/server/etc/modules/SNMP.pmod:169:    switch(t) {    case 'd':    case 's': return (string)value;    default: return sprintf("%s[%d][%d](%O)", type_name, cls, tag, value);    }    }   }      class String   { -  inherit Standards.ASN1.Types.asn1_octet_string : octet_string; +  inherit Standards.ASN1.Types.OctetString : octet_string;    inherit Documentation : doc;    inherit Updateable : update;    inherit OwnerInfo : owner_info;    constant type_name = "STRING";    protected void create(string|function(:string) val, string|void name,    string|void doc_string)    {    if (stringp(val)) {    update::create(UNDEFINED);    octet_string::create(val);