Objects of the v1.TRAPREQUEST class.

Instances of the v1.TRAPREQUEST class have the following methods:

encode([kwargs])

The encode method converts the entire SNMP message into BER octet-stream (string) in accordance with RFC 1157 specification.

The kwargs keyword arguments may be used for last-minute assignments to corresponding message components (see v1 module documentation for valid values.

decode(data)

The decode method attempts to convert the data octet-stream (string) into SNMP message.

The type and protocol version of the SNMP message carried in the data octet-stream must match instance's class type.

Any unprocessed part of data octet-stream is returned.


ilya@glas.net