Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9413 was 9406, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

File size: 1.6 KB
RevLine 
[9406]1/*
2   orxonox - the future of 3D-vertical-scrollers
[5530]3
[9406]4   Copyright (C) 2004 orx
[5530]5
[9406]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
[5530]19/*!
20 * @file network_manager.h
21 *  Main interface for the network module. Manages all the modules
22 */
23
[9406]24#ifndef _NETDEFS_H
25#define _NETDEFS_H
[5530]26
[9406]27#include "nettypes.h"
28#include "netincl.h"
[5588]29
[5605]30
[6695]31
[9406]32//!< the amount of slots used before a proxy server is activated
33#define NET_CONNECTION_SATURATION 0.75
34
35//!< network polling frequency
[8802]36#define NETWORK_FREQUENCY 66
[6695]37
[7954]38
[9406]39//!< orxonox protocol id
40#define _ORXONOX_ID        0xF91337A0
41//!< orxonox network version identifier
42#define _ORXONOX_VERSION   1
[5530]43
44
[9246]45//!< enum indicating the type of the node
[5649]46typedef enum {
[9406]47  NET_MASTER_SERVER,
48  NET_PROXY_SERVER_ACTIVE,
49  NET_PROXY_SERVER_PASSIVE,
50  NET_CLIENT,
51
52  NET_NR_TYPES
53
[5649]54} NodeType;
55
[9246]56//!< enum indicating the type of the network connection (2 protocols supported)
[7954]57typedef enum ConnectionType {
58  NET_UDP = 0,
59  NET_TCP
60};
[6695]61
[9246]62//!< the type of the user id (special number never used elsewhere)
[6695]63typedef enum {
64  NET_UID_UNASSIGNED = -1,
65
66  NET_UID_NUMBER
67} UidType;
68
[9406]69#endif /* _NETDEFS_H */
Note: See TracBrowser for help on using the repository browser.