public static class DefaultTcpTransportMapping.SnmpMesssageLengthDecoder extends Object implements MessageLengthDecoder
Constructor and Description |
---|
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 int getMinHeaderLength()
MessageLengthDecoder
getMinHeaderLength
in interface MessageLengthDecoder
public MessageLength getMessageLength(ByteBuffer buf) throws IOException
MessageLengthDecoder
getMessageLength
in interface MessageLengthDecoder
buf
- a ByteBuffer with a minimum of MessageLengthDecoder.getMinHeaderLength()
.IOException
- if the header cannot be decoded.Copyright © 2014 SNMP4J.org. All rights reserved.