Add delay to matchmaking servers direct ip requests.

This commit is contained in:
Mr_Goldberg 2020-02-24 15:05:51 -05:00
parent 2204de7ce4
commit f62a2e4566
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 16 additions and 2 deletions

View file

@ -18,12 +18,14 @@
#include "base.h"
#define SERVER_TIMEOUT 10.0
#define DIRECT_IP_DELAY 0.05
struct Steam_Matchmaking_Servers_Direct_IP_Request {
HServerQuery id;
uint32 ip;
uint16 port;
std::chrono::high_resolution_clock::time_point created;
ISteamMatchmakingRulesResponse *rules_response = NULL;
ISteamMatchmakingPlayersResponse *players_response = NULL;
ISteamMatchmakingPingResponse *ping_response = NULL;