@ApiStatus.Internal public final class SourceQuery extends Object
Modifier and Type | Field and Description |
---|---|
static int |
A2S_INFO_EDF_GAMEID
Constant
A2S_INFO_EDF_GAMEID=0x01 |
static int |
A2S_INFO_EDF_PORT
Constant
A2S_INFO_EDF_PORT=0x80 |
static int |
A2S_INFO_EDF_SOURCETV
Constant
A2S_INFO_EDF_SOURCETV=0x40 |
static int |
A2S_INFO_EDF_STEAMID
Constant
A2S_INFO_EDF_STEAMID=0x10 |
static int |
A2S_INFO_EDF_TAGS
Constant
A2S_INFO_EDF_TAGS=0x20 |
static org.slf4j.Marker |
INFO_QUERY
Constant
INFO_QUERY |
static int |
SOURCE_PACKET_TYPE_SINGLE
Constant
SOURCE_PACKET_TYPE_SINGLE=0xFFFFFFFF |
static int |
SOURCE_PACKET_TYPE_SPLIT
Constant
SOURCE_PACKET_TYPE_SPLIT=0xFFFFFFFE |
static int |
SOURCE_QUERY_CHALLENGE_REQ
Constant
SOURCE_QUERY_CHALLENGE_REQ=0x57 |
static int |
SOURCE_QUERY_CHALLENGE_RES
Constant
SOURCE_QUERY_CHALLENGE_RES=0x41 |
static String |
SOURCE_QUERY_INFO_PAYLOAD
Constant
SOURCE_QUERY_INFO_PAYLOAD="Source Engine Query\0" |
static int |
SOURCE_QUERY_INFO_REQ
Constant
SOURCE_QUERY_INFO_REQ=0x54 |
static int |
SOURCE_QUERY_INFO_RES
Constant
SOURCE_QUERY_INFO_RES=0x49 |
static int |
SOURCE_QUERY_PLAYER_REQ
Constant
SOURCE_QUERY_PLAYER_REQ=0x55 |
static int |
SOURCE_QUERY_PLAYER_RES
Constant
SOURCE_QUERY_PLAYER_RES=0x44 |
static int |
SOURCE_QUERY_RULES_REQ
Constant
SOURCE_QUERY_RULES_REQ=0x56 |
static int |
SOURCE_QUERY_RULES_RES
Constant
SOURCE_QUERY_RULES_RES=0x45 |
Constructor and Description |
---|
SourceQuery() |
Modifier and Type | Method and Description |
---|---|
static SourceChallengeType |
getChallengeType(Class<? extends SourceQueryRequest> requestClass)
getChallengeType.
|
static boolean |
isInvalidHeader(int header)
isInvalidHeader.
|
static boolean |
isValidPacketType(int type)
isValidPacketType.
|
static boolean |
isValidRequest(int header)
isValidRequest.
|
static boolean |
isValidResponse(int header)
isValidResponse.
|
public static final org.slf4j.Marker INFO_QUERY
INFO_QUERY
public static final int SOURCE_PACKET_TYPE_SINGLE
SOURCE_PACKET_TYPE_SINGLE=0xFFFFFFFF
public static final int SOURCE_PACKET_TYPE_SPLIT
SOURCE_PACKET_TYPE_SPLIT=0xFFFFFFFE
public static final int SOURCE_QUERY_INFO_REQ
SOURCE_QUERY_INFO_REQ=0x54
public static final int SOURCE_QUERY_INFO_RES
SOURCE_QUERY_INFO_RES=0x49
public static final int SOURCE_QUERY_PLAYER_REQ
SOURCE_QUERY_PLAYER_REQ=0x55
public static final int SOURCE_QUERY_PLAYER_RES
SOURCE_QUERY_PLAYER_RES=0x44
public static final int SOURCE_QUERY_RULES_REQ
SOURCE_QUERY_RULES_REQ=0x56
public static final int SOURCE_QUERY_RULES_RES
SOURCE_QUERY_RULES_RES=0x45
public static final int SOURCE_QUERY_CHALLENGE_REQ
SOURCE_QUERY_CHALLENGE_REQ=0x57
public static final int SOURCE_QUERY_CHALLENGE_RES
SOURCE_QUERY_CHALLENGE_RES=0x41
public static final String SOURCE_QUERY_INFO_PAYLOAD
SOURCE_QUERY_INFO_PAYLOAD="Source Engine Query\0"
public static final int A2S_INFO_EDF_PORT
A2S_INFO_EDF_PORT=0x80
public static final int A2S_INFO_EDF_STEAMID
A2S_INFO_EDF_STEAMID=0x10
public static final int A2S_INFO_EDF_SOURCETV
A2S_INFO_EDF_SOURCETV=0x40
public static final int A2S_INFO_EDF_TAGS
A2S_INFO_EDF_TAGS=0x20
public static final int A2S_INFO_EDF_GAMEID
A2S_INFO_EDF_GAMEID=0x01
public static boolean isValidPacketType(int type)
isValidPacketType.
type
- a intpublic static boolean isInvalidHeader(int header)
isInvalidHeader.
header
- a intpublic static boolean isValidRequest(int header)
isValidRequest.
header
- a intpublic static boolean isValidResponse(int header)
isValidResponse.
header
- a intpublic static SourceChallengeType getChallengeType(Class<? extends SourceQueryRequest> requestClass)
getChallengeType.
requestClass
- a Class
objectSourceChallengeType
objectCopyright © 2016–2024. All rights reserved.