Changeset 8494 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Jun 15, 2006, 9:50:26 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r8481 r8494 515 515 516 516 if ( this->remainingBytesToWriteToDict > 0 ) 517 writeToNewDict( buf, offset );517 writeToNewDict( buf, offset, true ); 518 518 519 519 peer->second.connectionMonitor->processUnzippedOutgoingPacket( tick, buf, offset, currentState ); … … 561 561 562 562 if ( this->remainingBytesToWriteToDict > 0 ) 563 writeToNewDict( buf, packetLength );563 writeToNewDict( buf, packetLength, false ); 564 564 565 565 assert( Converter::byteArrayToInt( buf, &length ) == INTSIZE ); … … 743 743 * @param length length 744 744 */ 745 void NetworkStream::writeToNewDict( byte * data, int length )745 void NetworkStream::writeToNewDict( byte * data, int length, bool upstream ) 746 746 { 747 747 if ( remainingBytesToWriteToDict <= 0 ) … … 753 753 std::string fileName = ResourceManager::getInstance()->getDataDir(); 754 754 fileName += "/dicts/newdict"; 755 756 if ( upstream ) 757 fileName += "_upstream"; 758 else 759 fileName += "_downstream"; 755 760 756 761 FILE * f = fopen( fileName.c_str(), "a" ); -
branches/network/src/lib/network/network_stream.h
r8068 r8494 84 84 void cleanUpOldSyncList(); 85 85 86 void writeToNewDict( byte * data, int length );86 void writeToNewDict( byte * data, int length, bool upstream ); 87 87 88 88
Note: See TracChangeset
for help on using the changeset viewer.