engine: rename MS_SCAN_REQUEST to A2M_SCAN_REQUEST

This commit is contained in:
Alibek Omarov
2025-10-05 10:04:18 +05:00
parent b4e83ca7fd
commit 64adb3e3d7
3 changed files with 8 additions and 8 deletions

View File

@@ -46,10 +46,10 @@ static size_t NET_BuildMasterServerScanRequest( char *buf, size_t size, uint32_t
char *info, temp[32];
// TODO: pagination and region
Q_strncpy( buf, MS_SCAN_REQUEST, size );
Q_strncpy( buf, A2M_SCAN_REQUEST, size );
info = buf + sizeof( MS_SCAN_REQUEST ) - 1;
remaining = size - sizeof( MS_SCAN_REQUEST );
info = buf + sizeof( A2M_SCAN_REQUEST ) - 1;
remaining = size - sizeof( A2M_SCAN_REQUEST );
Q_strncpy( info, filter, remaining );
@@ -74,7 +74,7 @@ static size_t NET_BuildMasterServerScanRequest( char *buf, size_t size, uint32_t
Info_SetValueForKey( info, "key", temp, remaining );
}
return sizeof( MS_SCAN_REQUEST ) + Q_strlen( info );
return sizeof( A2M_SCAN_REQUEST ) + Q_strlen( info );
}
/*

View File

@@ -69,8 +69,6 @@ GNU General Public License for more details.
// bytes will be stripped by the networking channel layer
#define NET_MAX_MESSAGE PAD_NUMBER(( NET_MAX_PAYLOAD + HEADER_BYTES ), 16 )
#define MS_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0"
#define PORT_MASTER 27010
#define PORT_SERVER 27015

View File

@@ -317,7 +317,6 @@ extern const char *const svc_goldsrc_strings[svc_lastmsg+1];
| ENGINE_COMPUTE_STUDIO_LERP )
// Master Server protocol
#define MS_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0" // TODO: implement IP filter
// GoldSrc protocol definitions
#define PROTOCOL_GOLDSRC_VERSION 48
@@ -397,7 +396,10 @@ extern const char *const svc_goldsrc_strings[svc_lastmsg+1];
#define A2C_PRINT "print"
#define A2C_GOLDSRC_PRINT 'l'
// from master to client
// from any to master
#define A2M_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0" // TODO: implement IP filter
// from master to any
#define M2A_SERVERSLIST "f"
#endif//NET_PROTOCOL_H