public class NetworkPacket extends Object
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() |
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 io.netty.buffer.ByteBuf getBuffer()
public int getRemoteId()
public int getLocalId()
public byte getCode()
public io.netty.buffer.ByteBuf getNetworkPacket()
public void clear()
Copyright © 2009–2020 Waarp. All rights reserved.