mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Moved MIN_HEARTBEAT_TIME and MAX_HEARTBEAT_TIME to sv_gqueryreporting.h
This commit is contained in:
parent
8b563e5232
commit
92fdfe3f35
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue