- Timestamp:
- Jul 25, 2006, 4:28:08 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/netdefs.h
r9450 r9458 56 56 } NodeType; 57 57 58 58 59 //!< enum indicating the type of the network connection (2 protocols supported) 59 60 typedef enum ConnectionType { … … 61 62 NET_TCP 62 63 }; 64 63 65 64 66 //!< the type of the unique id (special number never used elsewhere) … … 132 134 133 135 NET_ID_CLIENT_MAX = 40 134 135 136 }; 136 137 #endif /* _NETDEFS_H */ -
branches/proxy/src/lib/network/nettypes.h
r9406 r9458 5 5 typedef unsigned char byte; 6 6 7 8 //!< this are the network write variable permissions 9 typedef enum netPermissions { 10 PERMISSION_MASTER_SERVER = 1, 11 PERMISSION_PROXY_SERVER = 2, 12 PERMISSION_OWNER = 4, 13 PERMISSION_ALL = 8 14 }; 15 16 7 17 #endif /* __NET_TYPES_H */ -
branches/proxy/src/lib/network/network_manager.cc
r9452 r9458 136 136 this->networkStream->startHandshake(NET_ID_MASTER_SERVER); 137 137 // then start the server 138 this->networkStream->createServer( port);138 //this->networkStream->createServer( port); 139 139 // and to the other proxy servers also, this would be very nice if its works 140 140 -
branches/proxy/src/lib/network/network_manager.h
r9406 r9458 17 17 18 18 19 /* forward declarations for the header file (include the header via #include "bla.h" in the source file) */ 19 20 20 class NetworkStream; 21 21 class Synchronizeable; 22 template<typename> 23 class tList; 22 24 23 25 24 /* and here is the class itsself*/ -
branches/proxy/src/lib/network/synchronizeable.cc
r9453 r9458 213 213 hasPermission = true; 214 214 // now check PROXY_SERVER permissions 215 else if( SharedNetworkData::getInstance()->isProxyServerActive() && (*it)->checkPermission( PERMISSION_ MASTER_SERVER ))215 else if( SharedNetworkData::getInstance()->isProxyServerActive() && (*it)->checkPermission( PERMISSION_PROXY_SERVER )) 216 216 hasPermission = true; 217 217 // now check OWNER permissions … … 354 354 hasPermission = true; 355 355 // now check PROXY_SERVER permissions 356 else if( this->networkStream->isUserProxyServerActive( userId ) && (*it)->checkPermission( PERMISSION_ MASTER_SERVER ))356 else if( this->networkStream->isUserProxyServerActive( userId ) && (*it)->checkPermission( PERMISSION_PROXY_SERVER )) 357 357 hasPermission = true; 358 358 // now check OWNER permissions -
branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_var.h
r9406 r9458 10 10 #include <string> 11 11 12 enum { 13 PERMISSION_MASTER_SERVER = 1, 14 PERMISSION_PROXY_SERVER = 2, 15 PERMISSION_OWNER = 4, 16 PERMISSION_ALL = 8 17 }; 12 18 13 19 14 class SynchronizeableVar {
Note: See TracChangeset
for help on using the changeset viewer.