Changeset 6139 in orxonox.OLD for trunk/src/lib/network/synchronizeable.cc
- Timestamp:
- Dec 16, 2005, 6:45:32 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/synchronizeable.cc
r5997 r6139 15 15 */ 16 16 17 #define DEBUG_MODULE_NETWORK 18 17 19 #include "synchronizeable.h" 18 20 #include "netdefs.h" 21 #include "network_manager.h" 22 #include "network_stream.h" 19 23 20 24 … … 25 29 { 26 30 27 //owner = ?; 28 //hostID = ?; 31 owner = 0; 32 hostID = NetworkManager::getInstance()->getHostID(); 33 uniqueID = -1; 29 34 //state = ?; 30 35 … … 44 49 */ 45 50 Synchronizeable::~Synchronizeable() 46 {} 51 { 52 if ( this->networkStream ) 53 this->networkStream->disconnectSynchronizeable(*this); 54 } 47 55 48 56 /** … … 50 58 */ 51 59 void Synchronizeable::writeBytes(const byte* data, int length) 52 {} 60 { 61 PRINTF(1)("Synchronizeable::writeBytes was called\n"); 62 } 53 63 54 64 /** 55 65 * read data from NetworkStream 56 66 */ 57 int Synchronizeable::readBytes(byte* data) 58 {} 67 int Synchronizeable::readBytes(byte* data, int maxLength, int * reciever) 68 { 69 PRINTF(1)("Synchronizeable::readBytes was called\n"); 70 } 59 71 60 72 … … 65 77 void Synchronizeable::readDebug() const 66 78 {} 67 68 69 70 79 71 80 … … 111 120 return this->state & STATE_OUTOFSYNC == STATE_OUTOFSYNC; 112 121 } 122 123 124
Note: See TracChangeset
for help on using the changeset viewer.