public static class DefaultTcpTransportMapping.SnmpMesssageLengthDecoder extends Object implements MessageLengthDecoder
| Constructor and Description |
|---|
DefaultTcpTransportMapping.SnmpMesssageLengthDecoder() |
| Modifier and Type | Method and Description |
|---|---|
MessageLength |
getMessageLength(ByteBuffer buf)
Returns the total message length to read (including header) and
the actual header length.
|
int |
getMinHeaderLength()
Returns the minimum length of the header to be decoded.
|
public DefaultTcpTransportMapping.SnmpMesssageLengthDecoder()
public int getMinHeaderLength()
MessageLengthDecodergetMinHeaderLength in interface MessageLengthDecoderpublic MessageLength getMessageLength(ByteBuffer buf) throws IOException
MessageLengthDecodergetMessageLength in interface MessageLengthDecoderbuf - a ByteBuffer with a minimum of MessageLengthDecoder.getMinHeaderLength().IOException - if the header cannot be decoded.Copyright © 2016 SNMP4J.org. All Rights Reserved.