public class BlockRequestPacket extends AbstractLocalPacket
1 code (byte as 0: unblock, 1:block): block, 1 string: spassword(or key)
end, header, middle
Constructor and Description |
---|
BlockRequestPacket(boolean block,
byte[] spassword) |
Modifier and Type | Method and Description |
---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static BlockRequestPacket |
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
|
boolean |
getBlock() |
byte[] |
getKey() |
byte |
getType() |
String |
toString() |
clear, getLocalPacket, retain
public BlockRequestPacket(boolean block, byte[] spassword)
block
- spassword
- public static BlockRequestPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength
- middleLength
- endLength
- buf
- OpenR66ProtocolPacketException
public void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createEnd
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createHeader
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createMiddle
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public String toString()
toString
in class AbstractLocalPacket
public byte getType()
getType
in class AbstractLocalPacket
public boolean getBlock()
public byte[] getKey()
Copyright © 2009–2020 Waarp. All rights reserved.