|
Methods defined here:
- decode_integer(self, octetStream)
- decode_integer(stream) -> integer
Decode octet stream into signed ASN.1 integer.
- decode_ipaddr(self, octetStream)
- decode_ipaddr(stream) -> IP address
Decode octet stream into ASN.1 IP address (in dotted notation)
- decode_null(self, octetStream)
- decode_null(stream) -> Null
Decode octet stream into ASN.1 Null
- decode_oid(self, octetStream)
- decode_oid(stream) -> object id
Decode octet stream into ASN.1 Object ID (returned as a list of
integer subIDs).
- decode_string(self, octetStream)
- decode_string(stream) -> string
Decode octet stream into signed ASN.1 string.
- decode_timeticks(self, octetStream)
- decode_timeticks(stream) -> timeticks
Decode octet stream into ASN.1 timeticks
- decode_uptime = decode_timeticks(self, octetStream)
- decode_value(self, octetStream)
- decode_value(stream) -> value
Decode octet stream into ASN.1 value (its ASN.1 type is
determined from included BER tag). The type of returned
value is context dependent.
- encode_integer(self, integer)
- encode_integer(integer) -> octet stream
Encode ASN.1 integer into octet stream.
- encode_ipaddr(self, addr)
- encode_addr(addr) -> octet stream
Encode ASN.1 IP address (in dotted notation) into octet stream.
- encode_null(self)
- encode_null() -> octet stream
Encode ASN.1 Null into octet stream.
- encode_oid(self, noids)
- encode_oid(oids) -> octet stream
Encode ASN.1 Object ID (specified as a list of integer subIDs)
into octet stream.
- encode_string(self, string)
- encode_string(string) -> octet stream
Encode ASN.1 string into octet stream.
- encode_timeticks(self, timeticks)
- encode_timeticks(timeticks) -> octet stream
Encode ASN.1 timeticks into octet stream.
- nums2str(self, objid_n, aliases=None)
- nums2str(obj_id) -> object id
Convert Object ID (given as a list of integer sub Object IDs) into
string representation.
- oid_prefix_check(self, enc_oid_1, enc_oid_2)
- oid_prefix_check(encoded_oid_1, encoded_oid_2) -> boolean
Compare encoded OIDs (given as lists), return non-None if
OID1 is a prefix of OID2.
This is intended to be used for MIB tables retrieval.
- str2nums(self, txt, aliases=None)
- str2nums(obj_id) -> object id
Convert Object ID (given as string) into a list of integer
sub IDs.
|