Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7804 in orxonox.OLD for branches/network


Ignore:
Timestamp:
May 24, 2006, 2:19:42 PM (19 years ago)
Author:
rennerc
Message:
 
Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/converter.cc

    r7631 r7804  
    489489  {
    490490    PRINTF(1)("something went wrong length > remaining bytes in buffer\n" );
     491   
     492    //TODO remove this
     493    for ( int i = -1000; i < 1001; i++ )
     494    {
     495      if ( ( a[i] > 'a' && a[i] < 'z' ) || ( a[i] > 'A' && a[i] < 'Z' ) )
     496        printf("%c", a[i]);
     497      else
     498        printf(".");
     499    }
     500    printf("\n");
     501   
    491502    s = "";
    492503    return -1;
  • branches/network/src/lib/network/network_stream.cc

    r7803 r7804  
    390390    for ( SynchronizeableList::iterator it = synchronizeables.begin(); it != synchronizeables.end(); it++ )
    391391    {
     392      PRINTF(0)("offset: %d\n", offset);
    392393      int oldOffset = offset;
    393394      Synchronizeable & sync = **it;
     
    447448    peer->second.connectionMonitor->processUnzippedOutgoingPacket( buf, offset, currentState );
    448449   
     450    assert( offset != 142 );
    449451    NETPRINTF(n)("send packet: %d userId = %d\n", offset, peer->second.userId);
    450452  }
     
    475477    while ( 0 < (packetLength = peer->second.socket->readPacket( buf, UDP_PACKET_SIZE )) )
    476478    {
    477 
     479      PRINTF(0)("offset: %d\n", offset);
    478480      if ( packetLength < 4*INTSIZE )
    479481      {
  • branches/network/src/lib/network/synchronizeable_var/synchronizeable_string.cc

    r7631 r7804  
    6666  setHasChanged( oldVal != *vPtrOut );
    6767 
     68  if ( res < 0 )
     69  {
     70    printf("%s | res (%d) < 0\n", this->getName().c_str(), res);
     71  }
    6872  assert( res > 0 );
    6973 
Note: See TracChangeset for help on using the changeset viewer.