Alpha API to Message objects

Alpha API implements the following API methods to the rfc1157.Message and rfc1905.Message objects.

apiAlphaGetVersion()

Returns a reference to Version object.

apiAlphaGetCommunity()

Returns a reference to Community object.

apiAlphaSetCommunity(value)

Stores value as SNMP community at Message object where value is either a Community object or a value suitable for Community object initialization.

apiAlphaGetPdu()

Returns a reference to any of rfc1157 or rfc905 PDU object at Message.

apiAlphaSetPdu(pdu)

Stores pdu object at Message, where pdu must be any of rfc1157 or rfc905 PDU objects.

apiAlphaReply([rspMsg])

Returns new or initializes rspMsg instance of rfc1157 or rfc1905 Message object with the same Community value. This method invokes apiAlphaReply() method at PDU.

apiAlphaMatch(rspMsg)

Returns true if Community at rspMsg (which must be a rfc1157 or rfc1905 Message instance) is the same as SNMP community name of this Message.


ilya@glas.net