public class Header extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Header.Type |
Modifier and Type | Field and Description |
---|---|
int |
length |
static int |
SIZE |
Header.Type |
type |
int |
version |
static int |
VERSION |
Constructor and Description |
---|
Header(io.netty.buffer.ByteBuf buffer) |
Modifier and Type | Method and Description |
---|---|
Packet |
parsePayload(io.netty.buffer.ByteBuf buffer,
PeerAccessor peerAccessor) |
int |
payloadLength() |
String |
toString() |
public static final int SIZE
public static final int VERSION
public final int version
public final int length
public final Header.Type type
public Header(io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
InvalidPacketException
public int payloadLength()
public Packet parsePayload(io.netty.buffer.ByteBuf buffer, PeerAccessor peerAccessor) throws InvalidPacketException
InvalidPacketException
Copyright © 2020. All rights reserved.