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 |
Constructor and Description |
---|
Header(io.netty.buffer.ByteBuf buffer) |
Modifier and Type | Method and Description |
---|---|
Packet |
parsePayload(io.netty.buffer.ByteBuf buffer,
PeerFlags flags,
Optional<PeerInfo> peerInfo) |
String |
toString() |
public static final int SIZE
public final int length
public final Header.Type type
public Header(io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
InvalidPacketException
public Packet parsePayload(io.netty.buffer.ByteBuf buffer, PeerFlags flags, Optional<PeerInfo> peerInfo) throws InvalidPacketException
InvalidPacketException
Copyright © 2020. All rights reserved.