Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5734 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Nov 23, 2005, 3:08:41 PM (19 years ago)
Author:
bottac
Message:
 
File:
1 edited

Legend:

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

    r5731 r5734  
    5252{
    5353  this->init();
    54   this->networkSocket = new NetworkSocket(/* address, type */);
    55   this->networkSocket->connectToServer(address, 88);
     54  this->networkSocket = new NetworkSocket( address, 88 );
     55   // this->networkSocket->connectToServer(address, 88);
    5656
    5757  this->synchronizeables = &sync;
     
    108108  /* first read 10bytes of data (debug) */
    109109
    110  ret = 0;
    111  while(ret == 0) { ret = this->networkSocket->readBlock((byte*)upBuffer,PACKAGE_SIZE);}
    112 
    113 
     110  ret = 0;
     111  while(ret == 0)  ret = this->networkSocket->readBlock((byte*)upBuffer,PACKAGE_SIZE);
    114112  /* error checking: data read? */
    115   if( ret != 10) { PRINTF(0)("Error while reading data from the NetworkSocket\n");}
     113  if( ret != PACKAGE_SIZE) { PRINTF(0)("Error while reading data from the NetworkSocket\n");}
    116114  /* now pass the data to the sync object */
    117115
Note: See TracChangeset for help on using the changeset viewer.