Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/netdefs.h @ 9379

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

some network comments

File size: 724 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
[8802]21#define NETWORK_FREQUENCY 66
[6695]22
[7954]23
[5530]24typedef unsigned char byte;
25
26
[9246]27//!< enum indicating the type of the node
[5649]28typedef enum {
29  NET_SERVER,
30  NET_CLIENT
31} NodeType;
32
[9246]33//!< enum indicating the type of the network connection (2 protocols supported)
[7954]34typedef enum ConnectionType {
35  NET_UDP = 0,
36  NET_TCP
37};
[6695]38
[9246]39//!< the type of the user id (special number never used elsewhere)
[6695]40typedef enum {
41  NET_UID_UNASSIGNED = -1,
42
43  NET_UID_NUMBER
44} UidType;
45
[5530]46#endif /* _NETWORK_MANAGER */
Note: See TracBrowser for help on using the repository browser.