- Timestamp:
- May 24, 2006, 1:24:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r7792 r7800 197 197 handleHandshakes(); 198 198 199 // order of up/downstream is important!!!! 200 // don't change it 199 201 handleDownstream(); 200 202 handleUpstream(); … … 421 423 422 424 assert( Converter::intToByteArray( n, buf + offset - n - INTSIZE, INTSIZE ) == INTSIZE ); 425 426 //check if all bytes == 0 -> remove data 427 bool allZero = true; 428 for ( int i = offset - n; i < offset; i++ ) 429 { 430 if ( buf[i] != 0 ) 431 allZero = false; 432 } 433 434 if ( allZero ) 435 { 436 NETPRINTF(n)("REMOVE ZERO DIFF: %s (%d)\n", sync.getClassName(), sync.getUniqueID()); 437 offset = offset - n - 2*INTSIZE; 438 } 439 423 440 } 424 441
Note: See TracChangeset
for help on using the changeset viewer.