XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
Doomgeneric
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
22
void
NET_SV_Init
(
void
);
23
24
// run server: check for new packets received etc.
25
26
void
NET_SV_Run
(
void
);
27
28
// Shut down the server
29
// Blocks until all clients disconnect, or until a 5 second timeout
30
31
void
NET_SV_Shutdown
(
void
);
32
33
// Add a network module to the context used by the server
34
35
void
NET_SV_AddModule
(
net_module_t
*module);
36
37
// Register server with master server.
38
39
void
NET_SV_RegisterWithMaster
(
void
);
40
41
#endif
/* #ifndef NET_SERVER_H */
42
NET_SV_Run
void NET_SV_Run(void)
NET_SV_AddModule
void NET_SV_AddModule(net_module_t *module)
NET_SV_Shutdown
void NET_SV_Shutdown(void)
NET_SV_Init
void NET_SV_Init(void)
NET_SV_RegisterWithMaster
void NET_SV_RegisterWithMaster(void)
_net_module_s
Definition
net_defs.h:61
Generated by
1.9.8