XenevaOS
Loading...
Searching...
No Matches
net_query.h
Go to the documentation of this file.
1//
2// Copyright(C) 2005-2014 Simon Howard
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version 2
7// of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// DESCRIPTION:
15// Querying servers to find their current status.
16//
17
18#ifndef NET_QUERY_H
19#define NET_QUERY_H
20
21#include "net_defs.h"
22
23typedef void (*net_query_callback_t)(net_addr_t *addr,
24 net_querydata_t *querydata,
25 unsigned int ping_time,
26 void *user_data);
27
28extern int NET_StartLANQuery(void);
29extern int NET_StartMasterQuery(void);
30
31extern void NET_LANQuery(void);
32extern void NET_MasterQuery(void);
33extern void NET_QueryAddress(char *addr);
35
36extern int NET_Query_Poll(net_query_callback_t callback, void *user_data);
37
39extern void NET_Query_AddToMaster(net_addr_t *master_addr);
40extern boolean NET_Query_CheckAddedToMaster(boolean *result);
42
43#endif /* #ifndef NET_QUERY_H */
44
struct _net_context_s net_context_t
Definition net_defs.h:50
boolean NET_Query_CheckAddedToMaster(boolean *result)
net_addr_t * NET_Query_ResolveMaster(net_context_t *context)
int NET_Query_Poll(net_query_callback_t callback, void *user_data)
void NET_QueryAddress(char *addr)
void NET_Query_MasterResponse(net_packet_t *packet)
void NET_MasterQuery(void)
int NET_StartMasterQuery(void)
void NET_Query_AddToMaster(net_addr_t *master_addr)
void NET_LANQuery(void)
int NET_StartLANQuery(void)
void(* net_query_callback_t)(net_addr_t *addr, net_querydata_t *querydata, unsigned int ping_time, void *user_data)
Definition net_query.h:23
net_addr_t * NET_FindLANServer(void)
Definition net_defs.h:96
Definition net_defs.h:53
Definition net_defs.h:221