Instances of the v2c.GETRESPONSE class have the following methods:
The encode method converts the entire SNMP message into BER octet-stream (string) in accordance with RFC 1905 specification.
The kwargs keyword arguments may be used for last-minute assignments to corresponding message components (see v2c module documentation for valid values.
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.