Last change
on this file since 8562 was
7954,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk.
|
File size:
536 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 33 |
---|
22 | |
---|
23 | |
---|
24 | typedef unsigned char byte; |
---|
25 | |
---|
26 | |
---|
27 | typedef enum { |
---|
28 | NET_SERVER, |
---|
29 | NET_CLIENT |
---|
30 | } NodeType; |
---|
31 | |
---|
32 | typedef enum ConnectionType { |
---|
33 | NET_UDP = 0, |
---|
34 | NET_TCP |
---|
35 | }; |
---|
36 | |
---|
37 | |
---|
38 | typedef enum { |
---|
39 | NET_UID_UNASSIGNED = -1, |
---|
40 | |
---|
41 | NET_UID_NUMBER |
---|
42 | } UidType; |
---|
43 | |
---|
44 | #endif /* _NETWORK_MANAGER */ |
---|
Note: See
TracBrowser
for help on using the repository browser.