//=====================================================================================// // // Purpose: Implementation of the pylon server backend. // // $NoKeywords: $ //=====================================================================================// #include #include #include #include #include #include #include #include //----------------------------------------------------------------------------- // Purpose: Send keep alive request to Pylon Master Server. // NOTE: When Pylon update reaches indev remove this and implement properly. //----------------------------------------------------------------------------- void KeepAliveToPylon() { #ifndef CLIENT_DLL if (g_pHostState->m_bActiveGame && sv_pylonVisibility->GetBool()) // Check for active game. { std::string m_szHostToken = std::string(); std::string m_szHostRequestMessage = std::string(); bool result = g_pR5net->PostServerHost(m_szHostRequestMessage, m_szHostToken, ServerListing{ hostname->GetString(), std::string(g_pHostState->m_levelName), "", hostport->GetString(), mp_gamemode->GetString(), false, std::to_string(*g_nServerRemoteChecksum), std::string(), g_svNetKey.c_str() } ); } #endif // !CLIENT_DLL }