
public class ShutdownPacket extends AbstractLocalPacket
1 string: spassword(or key) + 1 byte (optional) to restart (if not null)
end, header, middle| Constructor and Description |
|---|
ShutdownPacket(byte[] spassword) |
ShutdownPacket(byte[] spassword,
byte restart) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static ShutdownPacket |
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[] |
getKey() |
byte |
getType() |
boolean |
isRestart() |
String |
toString() |
clear, getLocalPacket, 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 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 String toString()
toString in class AbstractLocalPacketpublic byte getType()
getType in class AbstractLocalPacketpublic byte[] getKey()
public boolean isRestart()
Copyright © 2009–2020 Waarp. All rights reserved.