SnmpPdu and returns the resulting SnmpMsg. If this method returns null, the specified SnmpPdu will be dropped and the current SNMP request will be aborted.
@param p The SnmpPdu to be encoded.
@param maxDataLength The size limit of the resulting encoding.
@return Null or a fully encoded SnmpMsg.
@exception SnmpStatusException If pdu containsillegal values and cannot be encoded.
@exception SnmpTooBigException If the resulting encoding does notfit into maxPktSize bytes.
@since 1.5
| |
| |