XenevaOS
Loading...
Searching...
No Matches
net_server.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// Network server code
15//
16
17#ifndef NET_SERVER_H
18#define NET_SERVER_H
19
20// initialize server and wait for connections
21
22void NET_SV_Init(void);
23
24// run server: check for new packets received etc.
25
26void NET_SV_Run(void);
27
28// Shut down the server
29// Blocks until all clients disconnect, or until a 5 second timeout
30
31void NET_SV_Shutdown(void);
32
33// Add a network module to the context used by the server
34
36
37// Register server with master server.
38
40
41#endif /* #ifndef NET_SERVER_H */
42
void NET_SV_Run(void)
void NET_SV_AddModule(net_module_t *module)
void NET_SV_Shutdown(void)
void NET_SV_Init(void)
void NET_SV_RegisterWithMaster(void)
Definition net_defs.h:61