Moved MIN_HEARTBEAT_TIME and MAX_HEARTBEAT_TIME to sv_gqueryreporting.h

This commit is contained in:
smallmodel 2023-08-29 18:45:46 +02:00
parent 8b563e5232
commit 92fdfe3f35
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 3 additions and 3 deletions

View file

@ -29,9 +29,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
static char *queries[] = {"basic", "info", "rules", "players", "status", "packets", "echo", "secure"};
static const unsigned int MIN_HEARTBEAT_TIME = 30000; // wait at least 30 seconds before new heartbeat can be sent
static const unsigned int MAX_HEARTBEAT_TIME = 300000; // 5 minutes
static qr_implementation_t static_rec;
static qr_implementation_t *current_rec = &static_rec;
struct sockaddr_in hbaddr;

View file

@ -26,6 +26,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define MAX_KEYVALUES_LENGTH 1400
static const unsigned int MIN_HEARTBEAT_TIME = 30000; // wait at least 30 seconds before new heartbeat can be sent
static const unsigned int MAX_HEARTBEAT_TIME = 300000; // 5 minutes
typedef void (*qr_querycallback_t)(char *outbuf, int maxlen, void *userdata);
typedef void (*qr_custom_handler_t)(const char *query, struct sockaddr *sender);