- Timestamp:
- May 10, 2006, 11:24:12 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r7575 r7578 571 571 assert( Converter::byteArrayToInt( buf + 2*INTSIZE, &fromState ) == INTSIZE ); 572 572 assert( Converter::byteArrayToInt( buf + 3*INTSIZE, &ackedState ) == INTSIZE ); 573 offset = 4*INTSIZE; 573 574 574 575 PRINTF(0)("got packet: %d, %d\n", length, packetLength); … … 584 585 continue; 585 586 } 586 587 offset = 4*INTSIZE;588 587 589 588 while ( offset < length ) -
branches/network/src/lib/network/synchronizeable.cc
r7575 r7578 176 176 if ( (*it)->getPriority() >= priorityTH || sizeIter == stateFrom->sizeList.end() ) 177 177 { 178 (*it)->debug(); 178 179 n = (*it)->writeToBuf( stateTo->data+i, stateTo->dataLength - i ); 179 180 stateTo->sizeList.push_back( n ); … … 307 308 308 309 this->varChangeHandler( changes ); 309 310 assert( i == length ); 311 310 312 311 return length; 313 312 } -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.cc
r7508 r7578 64 64 return 1; 65 65 } 66 67 /** 68 * print out variable value 69 */ 70 void SynchronizeableBool::debug( ) 71 { 72 printf( "SYNCHRONIZEABLE_VAR: %s IN: %d OUT: %d\n", name.c_str(), (int)*vPtrIn, (int)*vPtrOut ); 73 } 74 75 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.h
r7459 r7578 24 24 virtual bool hasStaticSize(){ return true; }; 25 25 26 virtual void debug(); 27 26 28 private: 27 29 bool * vPtrIn; //!< pointer to data (read) -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_float.cc
r7459 r7578 68 68 return res; 69 69 } 70 71 72 /** 73 * print out variable value 74 */ 75 void SynchronizeableFloat::debug( ) 76 { 77 printf( "SYNCHRONIZEABLE_VAR: %s IN: %f OUT: %f\n", name.c_str(), *vPtrIn, *vPtrOut ); 78 } 79 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_float.h
r7459 r7578 24 24 virtual bool hasStaticSize(){ return true; }; 25 25 26 virtual void debug(); 27 26 28 private: 27 29 float * vPtrIn; //!< pointer to data (read) -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_int.cc
r7508 r7578 68 68 return res; 69 69 } 70 71 72 /** 73 * print out variable value 74 */ 75 void SynchronizeableInt::debug( ) 76 { 77 printf( "SYNCHRONIZEABLE_VAR: %s IN: %d OUT: %d\n", name.c_str(), *vPtrIn, *vPtrOut ); 78 } 79 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_int.h
r7459 r7578 24 24 virtual bool hasStaticSize(){ return true; }; 25 25 26 private: 26 virtual void debug(); 27 28 protected: 27 29 int * vPtrIn; //!< pointer to data (read) 28 30 int * vPtrOut; //!< pointer to data (write) -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_quaternion.cc
r7565 r7578 104 104 return res; 105 105 } 106 107 108 /** 109 * print out variable value 110 */ 111 void SynchronizeableQuaternion::debug( ) 112 { 113 printf( "SYNCHRONIZEABLE_VAR: %s IN: ((%f, %f, %f), %f) OUT: ((%f %f %f), %f)\n", name.c_str(), vPtrIn->v.x, vPtrIn->v.y, vPtrIn->v.z, vPtrIn->w, vPtrOut->v.x, vPtrOut->v.y, vPtrOut->v.z, vPtrOut->w ); 114 } 115 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_quaternion.h
r7459 r7578 26 26 virtual bool hasStaticSize(){ return true; }; 27 27 28 virtual void debug(); 29 28 30 private: 29 31 Quaternion * vPtrIn; //!< pointer to data (read) -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_string.cc
r7459 r7578 66 66 return res; 67 67 } 68 69 /** 70 * print out variable value 71 */ 72 void SynchronizeableString::debug( ) 73 { 74 printf( "SYNCHRONIZEABLE_VAR: %s IN: '%s' OUT: '%s'\n", name.c_str(), vPtrIn->c_str(), vPtrOut->c_str() ); 75 } 76 77 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_string.h
r7508 r7578 30 30 virtual int getSize(){ return vPtrIn->length()+INTSIZE; } 31 31 32 virtual void debug(); 33 32 34 private: 33 35 std::string * vPtrIn; //!< pointer to data (read) -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_uint.cc
r7444 r7578 34 34 35 35 36 /** 37 * print out variable value 38 */ 39 void SynchronizeableUInt::debug( ) 40 { 41 printf( "SYNCHRONIZEABLE_VAR: %s IN: %u OUT: %u\n", name.c_str(), *vPtrIn, *vPtrOut ); 42 } 43 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_uint.h
r7444 r7578 14 14 SynchronizeableUInt( unsigned int * ptrIn, unsigned int * ptrOut, std::string name, int permission = 0, int priority = 0 ); 15 15 virtual ~SynchronizeableUInt(); 16 17 virtual void debug(); 16 18 17 19 }; -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_var.h
r7559 r7578 85 85 */ 86 86 inline void resetPriority() { this->priority = this->realPriority; } 87 88 /** 89 * print out variable value 90 */ 91 virtual void debug() = 0; 87 92 88 93 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_vector.cc
r7565 r7578 97 97 return res; 98 98 } 99 100 101 /** 102 * print out variable value 103 */ 104 void SynchronizeableVector::SynchronizeableVector::debug( ) 105 { 106 printf( "SYNCHRONIZEABLE_VAR: %s IN: (%f, %f, %f) OUT: (%f %f %f)\n", name.c_str(), vPtrIn->x, vPtrIn->y, vPtrIn->z, vPtrOut->x, vPtrOut->y, vPtrOut->z ); 107 } 108 -
branches/network/src/lib/network/synchronizeable_var/synchronizeable_vector.h
r7459 r7578 24 24 * @return true if same size every time 25 25 */ 26 virtual bool hasStaticSize(){ return true; }; 26 virtual bool hasStaticSize(){ return true; } 27 28 virtual void debug(); 27 29 28 30 private:
Note: See TracChangeset
for help on using the changeset viewer.