public class NetworkPacket extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NETWORK_HEADER_SIZE |
Constructor and Description |
---|
NetworkPacket(int localId,
int remoteId,
AbstractLocalPacket packet,
LocalChannelReference lcr) |
NetworkPacket(int localId,
int remoteId,
byte code,
io.netty.buffer.ByteBuf buffer) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
io.netty.buffer.ByteBuf |
getBuffer() |
byte |
getCode() |
int |
getLocalId() |
io.netty.buffer.ByteBuf |
getNetworkPacket() |
int |
getRemoteId() |
String |
toString() |
void |
writeNetworkHeader(io.netty.buffer.ByteBuf buf,
int capacity) |
public static final int NETWORK_HEADER_SIZE
public NetworkPacket(int localId, int remoteId, byte code, io.netty.buffer.ByteBuf buffer)
localId
- remoteId
- code
- buffer
- public NetworkPacket(int localId, int remoteId, AbstractLocalPacket packet, LocalChannelReference lcr) throws OpenR66ProtocolPacketException
localId
- remoteId
- packet
- lcr
- the LocalChannelReference in useOpenR66ProtocolPacketException
public final io.netty.buffer.ByteBuf getBuffer()
public final int getRemoteId()
public final int getLocalId()
public final byte getCode()
public final void writeNetworkHeader(io.netty.buffer.ByteBuf buf, int capacity)
public io.netty.buffer.ByteBuf getNetworkPacket()
public final void clear()
Copyright © 2009–2022 Waarp. All rights reserved.