
public class ShutdownPacket extends AbstractLocalPacket
1 string: spassword(or key) + 1 byte (optional) to restart (if not null)
EMPTY_ARRAY, end, global, header, LOCAL_HEADER_SIZE, middle| Constructor and Description |
|---|
ShutdownPacket(byte[] spassword) |
ShutdownPacket(byte[] spassword,
byte restart) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAllBuffers(LocalChannelReference lcr,
int networkHeader)
Prepare the 3 buffers Header, Middle and End
|
static ShutdownPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
byte[] |
getKey() |
byte |
getType() |
boolean |
hasGlobalBuffer() |
boolean |
isRestart() |
String |
toString() |
clear, createEnd, createHeader, createMiddle, getLocalPacket, getLocalPacketForNetworkPacket, retainpublic ShutdownPacket(byte[] spassword)
spassword - public ShutdownPacket(byte[] spassword,
byte restart)
spassword - restart - public static ShutdownPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength - middleLength - endLength - buf - OpenR66ProtocolPacketExceptionpublic final boolean hasGlobalBuffer()
hasGlobalBuffer in class AbstractLocalPacketpublic final void createAllBuffers(LocalChannelReference lcr, int networkHeader)
AbstractLocalPacketcreateAllBuffers in class AbstractLocalPacketpublic final String toString()
toString in class AbstractLocalPacketpublic final byte getType()
getType in class AbstractLocalPacketpublic final byte[] getKey()
public final boolean isRestart()
Copyright © 2009–2022 Waarp. All rights reserved.