Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/network/netdefs.h @ 9248

Last change on this file since 9248 was 9248, checked in by patrick, 18 years ago

starting switch to multiple server states (proxy, master, client,..)

File size: 769 bytes
Line 
1
2
3/*!
4 * @file network_manager.h
5 *  Main interface for the network module. Manages all the modules
6
7 */
8
9#ifndef _NETDEFS
10#define _NETDEFS
11
12#ifdef HAVE_SDL_NET_H
13  #include <SDL_net.h>
14#else
15  #include <SDL/SDL_net.h>
16#endif
17
18
19#define MAX_CONNECTIONS 1000
20
21#define NETWORK_FREQUENCY 66
22
23
24typedef unsigned char byte;
25
26
27//!< enum indicating the type of the node
28typedef enum {
29  NET_MASTER_SERVER,
30  NET_PROXY_SERVER,
31  NET_CLIENT,
32
33  NET_NR_TYPES
34
35} NodeType;
36
37//!< enum indicating the type of the network connection (2 protocols supported)
38typedef enum ConnectionType {
39  NET_UDP = 0,
40  NET_TCP
41};
42
43//!< the type of the user id (special number never used elsewhere)
44typedef enum {
45  NET_UID_UNASSIGNED = -1,
46
47  NET_UID_NUMBER
48} UidType;
49
50#endif /* _NETWORK_MANAGER */
Note: See TracBrowser for help on using the repository browser.