Updated YSF server status protocol
pull/122/head
LX3JL 6 years ago committed by SASANO Takayoshi
parent e0d9ea3026
commit b5ffe8b2c9

@ -953,6 +953,7 @@ bool CYsfProtocol::IsValidServerStatusPacket(const CBuffer &Buffer) const
bool CYsfProtocol::EncodeServerStatusPacket(CBuffer *Buffer) const
{
uint8 tag[] = { 'Y','S','F','S' };
uint8 description[] = { 'X','L','X',' ','r','e','f','l','e','c','t','o','r',' ' };
uint8 callsign[16];
// tag
@ -966,7 +967,7 @@ bool CYsfProtocol::EncodeServerStatusPacket(CBuffer *Buffer) const
// name
Buffer->Append(callsign, 16);
// desscription
Buffer->Append(' ', 14);
Buffer->Append(description, 14);
// connected clients
CClients *clients = g_Reflector.GetClients();
int count = MIN(999, clients->GetSize());

@ -52,7 +52,7 @@
#define VERSION_MAJOR 2
#define VERSION_MINOR 3
#define VERSION_REVISION 4
#define VERSION_REVISION 5
// global ------------------------------------------------------

Loading…
Cancel
Save

Powered by TurnKey Linux.