Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

cleanup minor

File size: 1.4 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Christoph Renner rennerc@ee.ethz.ch
13   co-programmer:   Patrick Boenzli  boenzlip@orxonox.ethz.ch
14
15     June 2006: finishing work on the network stream for pps presentation (rennerc@ee.ethz.ch)
16     July 2006: some code rearangement and integration of the proxy server mechanism (boenzlip@ee.ethz.ch)
17*/
18
19/*!
20 * @file network_manager.h
21 *  Main interface for the network module. Manages all the modules
22
23 */
24
25#ifndef _NETDEFS
26#define _NETDEFS
27
28#ifdef HAVE_SDL_NET_H
29  #include <SDL_net.h>
30#else
31  #include <SDL/SDL_net.h>
32#endif
33
34
35#define MAX_CONNECTIONS 1000
36
37#define NETWORK_FREQUENCY 66
38
39
40typedef unsigned char byte;
41
42
43//!< enum indicating the type of the node
44typedef enum {
45  NET_MASTER_SERVER,
46  NET_PROXY_SERVER,
47  NET_CLIENT,
48
49  NET_NR_TYPES
50
51} NodeType;
52
53//!< enum indicating the type of the network connection (2 protocols supported)
54typedef enum ConnectionType {
55  NET_UDP = 0,
56  NET_TCP
57};
58
59//!< the type of the user id (special number never used elsewhere)
60typedef enum {
61  NET_UID_UNASSIGNED = -1,
62
63  NET_UID_NUMBER
64} UidType;
65
66#endif /* _NETWORK_MANAGER */
Note: See TracBrowser for help on using the repository browser.