
public class TestPacket extends AbstractLocalPacket
3 strings: sheader,smiddle,send
| Modifier and Type | Field and Description |
|---|---|
static int |
PINGPONG |
end, header, middle| Constructor and Description |
|---|
TestPacket(String header,
String middle,
int code) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static TestPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
void |
createHeader(LocalChannelReference lcr)
Prepare the Header buffer
|
void |
createMiddle(LocalChannelReference lcr)
Prepare the Middle buffer
|
byte |
getType() |
String |
toString() |
void |
update() |
clear, getLocalPacket, retainpublic static final int PINGPONG
public static TestPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf)
public void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateEnd in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateHeader in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateMiddle in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic byte getType()
getType in class AbstractLocalPacketpublic String toString()
toString in class AbstractLocalPacketpublic void update()
Copyright © 2009–2020 Waarp. All rights reserved.