更新Steam网络信息,添加用户信息更新功能以获取延迟和中继状态

This commit is contained in:
Ayndpa
2025-11-18 21:45:42 +08:00
parent e7a09f9d92
commit d1d26ad0f0
4 changed files with 20 additions and 28 deletions

View File

@@ -81,15 +81,8 @@ public:
HSteamNetConnection getConnection() const { return g_hConnection; }
ISteamNetworkingSockets* getInterface() const { return m_pInterface; }
void setMessageHandlerDependencies(boost::asio::io_context& io_context, std::map<HSteamNetConnection, std::shared_ptr<TCPClient>>& clientMap, std::mutex& clientMutex, std::unique_ptr<TCPServer>& server, int& localPort);
// Message handler
void startMessageHandler();
void stopMessageHandler();
// For callbacks
void setHostSteamID(CSteamID id) { g_hostSteamID = id; }
CSteamID getHostSteamID() const { return g_hostSteamID; }
// Update user info (ping, relay status)
void update();
friend class SteamFriendsCallbacks;
friend class SteamMatchmakingCallbacks;