Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

network: server socket adapted

File size: 506 bytes
RevLine 
[5530]1
2
3/*!
4 * @file network_manager.h
5 *  Main interface for the network module. Manages all the modules
6
7 */
8
[5624]9#ifndef _NETDEFS
10#define _NETDEFS
[5530]11
[5588]12#ifdef HAVE_SDL_NET_H
[5605]13  #include <SDL_net.h>
[5588]14#else
[5605]15  #include <SDL/SDL_net.h>
[5588]16#endif
17
[5605]18
[6695]19#define MAX_CONNECTIONS 1000
20
21
[5530]22typedef unsigned char byte;
23
24
[5649]25typedef enum {
26  NET_SERVER,
27  NET_CLIENT
28} NodeType;
29
[7402]30typedef enum ConnectionType {
31  NET_UDP = 0,
32  NET_TCP
33};
[6695]34
[7402]35
[6695]36typedef enum {
37  NET_UID_UNASSIGNED = -1,
38
39  NET_UID_NUMBER
40} UidType;
41
[5530]42#endif /* _NETWORK_MANAGER */
Note: See TracBrowser for help on using the repository browser.