Changeset 9406 in orxonox.OLD for trunk/src/lib/network/netdefs.h
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/netdefs.h
r9246 r9406 1 /* 2 orxonox - the future of 3D-vertical-scrollers 1 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 */ 2 18 3 19 /*! 4 20 * @file network_manager.h 5 21 * Main interface for the network module. Manages all the modules 6 7 22 */ 8 23 9 #ifndef _NETDEFS 10 #define _NETDEFS 24 #ifndef _NETDEFS_H 25 #define _NETDEFS_H 11 26 12 #ifdef HAVE_SDL_NET_H 13 #include <SDL_net.h> 14 #else 15 #include <SDL/SDL_net.h> 16 #endif 27 #include "nettypes.h" 28 #include "netincl.h" 17 29 18 30 19 #define MAX_CONNECTIONS 100020 31 32 //!< the amount of slots used before a proxy server is activated 33 #define NET_CONNECTION_SATURATION 0.75 34 35 //!< network polling frequency 21 36 #define NETWORK_FREQUENCY 66 22 37 23 38 24 typedef unsigned char byte; 39 //!< orxonox protocol id 40 #define _ORXONOX_ID 0xF91337A0 41 //!< orxonox network version identifier 42 #define _ORXONOX_VERSION 1 25 43 26 44 27 45 //!< enum indicating the type of the node 28 46 typedef enum { 29 NET_SERVER, 30 NET_CLIENT 47 NET_MASTER_SERVER, 48 NET_PROXY_SERVER_ACTIVE, 49 NET_PROXY_SERVER_PASSIVE, 50 NET_CLIENT, 51 52 NET_NR_TYPES 53 31 54 } NodeType; 32 55 … … 44 67 } UidType; 45 68 46 #endif /* _NET WORK_MANAGER*/69 #endif /* _NETDEFS_H */
Note: See TracChangeset
for help on using the changeset viewer.