Modifier and Type | Method and Description |
---|---|
static String |
SourceRcon.getPacketTypeName(SourceRconPacket packet)
Get the name of the provided
SourceRconPacket |
static boolean |
SourceRcon.isAuthRequestPacket(SourceRconPacket packet)
Check if packet is an RCON Auth request packet
|
static boolean |
SourceRcon.isAuthResponsePacket(SourceRconPacket packet)
Check if packet is an RCON auth response packet
|
static boolean |
SourceRcon.isCommandResponsePacket(SourceRconPacket packet)
Check if packet is a Command Response Packet
|
static boolean |
SourceRcon.isInitialTerminatorPacket(SourceRconPacket packet)
Check if the packet is the primary terminator packet (The first terminator packet sent after a request)
|
static boolean |
SourceRcon.isResponseValuePacket(SourceRconPacket packet)
Check if packet is an RCON response value packet
|
static boolean |
SourceRcon.isSecondaryTerminatorPacket(SourceRconPacket packet)
Check if the packet is the secondary terminator packet (The secondary terminator packet sent after a request)
|
static boolean |
SourceRcon.isTerminatorPacket(SourceRconPacket packet)
Check if packet is a valid terminator packet
|
Modifier and Type | Method and Description |
---|---|
protected void |
SourceRconPacketEncoder.encode(io.netty.channel.ChannelHandlerContext ctx,
SourceRconPacket msg,
io.netty.buffer.ByteBuf out) |
Modifier and Type | Method and Description |
---|---|
static SourceRconPacket |
SourceRconPacketFactory.createAuth(int id,
byte[] password)
Create a new Authentication Request Packet
|
static SourceRconPacket |
SourceRconPacketFactory.createAuthResponse(int id)
Create an authentication response packet
|
static SourceRconPacket |
SourceRconPacketFactory.createCommand(int id,
String command)
Create a command request packet
|
static SourceRconPacket |
SourceRconPacketFactory.createPacket(int id,
int type,
io.netty.buffer.ByteBuf payload)
createPacket.
|
static SourceRconPacket |
SourceRconPacketFactory.createPacket(int size,
int id,
int type,
int terminator,
io.netty.buffer.ByteBuf payload)
createPacket.
|
static SourceRconPacket |
SourceRconPacketFactory.createResponseValue(int id,
io.netty.buffer.ByteBuf payload)
Create a response value packet
|
static SourceRconPacket |
SourceRconPacketFactory.createResponseValue(int id,
String response)
Create a response value packet
|
static SourceRconPacket |
SourceRconPacketFactory.createTerminator()
Create a new terminator packet.
|
SourceRconPacket |
SourceRconPacketDecoder.decode(io.netty.buffer.ByteBuf in)
decode.
|
Modifier and Type | Method and Description |
---|---|
int |
SourceRconPacket.compareTo(@NotNull SourceRconPacket o) |
io.netty.buffer.ByteBuf |
SourceRconPacketEncoder.encode(SourceRconPacket packet)
Encodes a
Packet into a ByteBuf |
Copyright © 2016–2024. All rights reserved.