// *************************************************************** // Function: XNotAuthenticated.cpp // *************************************************************** #include "Main.h" #pragma pack(push, 1) struct NO_ACTIVE_CLIENT_FOUND//No active client found { short gsnetworkId; }; #pragma pack(pop) //************************************ // Name: IcProcessNoClientWithIp // // Process not authenticated, close the connection to the offender. // // Parameters: // pData - Network message // s - Outgoing network message // pDest - Src data buffer // // Return: // //************************************ void IcProcessNoClientWithIp(NetMessage* pData, NetMessage* s, unsigned char* pDest) { NO_ACTIVE_CLIENT_FOUND r_data; Read_Struct(pDest+2, &r_data, sizeof(NO_ACTIVE_CLIENT_FOUND)); //Instruct the server to close the connection immediately NetMessage m(0, 1, r_data.gsnetworkId, 0); gpGameServer->SendControl(&m); }