Changeset 8706 for code/trunk/src/libraries/network
- Timestamp:
- Jun 14, 2011, 8:53:28 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/network/LANDiscovery.cc
r8351 r8706 38 38 namespace orxonox 39 39 { 40 ManageScopedSingleton(LANDiscovery, ScopeID:: Root, true);40 ManageScopedSingleton(LANDiscovery, ScopeID::Graphics, true); 41 41 42 42 LANDiscovery::LANDiscovery() … … 49 49 LANDiscovery::~LANDiscovery() 50 50 { 51 enet_host_destroy(this->host_); 51 if (this->host_ != NULL) 52 enet_host_destroy(this->host_); 52 53 } 53 54 -
code/trunk/src/libraries/network/Server.cc
r8351 r8706 413 413 414 414 COUT(4) << "sending welcome" << std::endl; 415 packet::Welcome *w = new packet::Welcome(clientID , OBJECTID_UNKNOWN);415 packet::Welcome *w = new packet::Welcome(clientID); 416 416 w->setPeerID(clientID); 417 417 b = w->send( static_cast<Host*>(this) ); -
code/trunk/src/libraries/network/packet/Welcome.cc
r7801 r8706 44 44 #define _ENDIANTEST _CLIENTID + sizeof(uint32_t) 45 45 46 Welcome::Welcome( uint32_t clientID , uint32_t shipID)46 Welcome::Welcome( uint32_t clientID ) 47 47 : Packet() 48 48 { -
code/trunk/src/libraries/network/packet/Welcome.h
r7801 r8706 41 41 { 42 42 public: 43 Welcome( uint32_t clientID , uint32_t shipID);43 Welcome( uint32_t clientID ); 44 44 Welcome( uint8_t* data, uint32_t clientID ); 45 45 virtual ~Welcome(); -
code/trunk/src/libraries/network/synchronisable/Serialise.h
r7284 r8706 84 84 85 85 /** @brief returns the size of the objectID needed to synchronise the pointer */ 86 template <class T> inline uint32_t returnSize( const SmartPtr<T>& variable)86 template <class T> inline uint32_t returnSize( const SmartPtr<T>& ) 87 87 { 88 88 return sizeof(uint32_t); -
code/trunk/src/libraries/network/synchronisable/Synchronisable.cc
r8329 r8706 383 383 /** 384 384 * This function determines, wheter the object should be saved to the bytestream (according to its syncmode/direction) 385 * @param id gamestate id386 385 * @param mode Synchronisation mode (toclient, toserver or bidirectional) 387 386 * @return true/false … … 397 396 /** 398 397 * This function determines, wheter the object should accept data from the bytestream (according to its syncmode/direction) 399 * @param id gamestate id400 398 * @param mode Synchronisation mode (toclient, toserver or bidirectional) 401 399 * @return true/false -
code/trunk/src/libraries/network/synchronisable/Synchronisable.h
r8329 r8706 50 50 namespace ObjectDirection{ 51 51 enum Value{ 52 None=0x0, 52 53 ToClient=0x1, 53 54 ToServer=0x2,
Note: See TracChangeset
for help on using the changeset viewer.