Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9441 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 24, 2006, 5:39:17 PM (18 years ago)
Author:
patrick
Message:

reconnection does not segfault anymore now! betta

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/ip.cc

    r9426 r9441  
    269269                     part1.getString() + "." + part0.getString();
    270270
    271   if (port != -1)
    272     addr += ":" + MultiType(port).getString();
     271#warning ip and ports are not handled correctly
     272//   if (port != -1)
     273//     addr += ":" + MultiType(port).getString();
    273274  return addr;
    274275}
  • branches/proxy/src/lib/network/network_stream.cc

    r9440 r9441  
    204204  PRINTF(0)("connect to proxy %s, this is node %i\n", host.c_str(), node);
    205205
    206   if( this->peers[node].socket != NULL)
    207     delete this->peers[node].socket;
    208 
    209206  this->peers[node].socket = new UdpSocket( host, port );
    210207  this->peers[node].userId = 0;
     
    451448      this->handleDisconnect( it->second.userId);
    452449
    453 #warning this is some more disconnct handling, consider doing it in the handleDisconnect() funciton
    454       // and cleanup the user infos
    455 //       for ( SynchronizeableList::iterator it2 = synchronizeables.begin(); it2 != synchronizeables.end(); it2++ )
    456 //       {
    457 //         (*it2)->cleanUpUser( it->second.userId );
    458 //       }
    459 //
    460 //       NetworkGameManager::getInstance()->signalLeftPlayer(it->second.userId);
    461 //
    462 //       freeSocketSlots.push_back( it->second.userId );
    463 
    464 //       PeerList::iterator delit = it;
    465450      it++;
    466 
    467 //       peers.erase( delit );
    468 
    469451      continue;
    470452    }
     
    643625//   pInfo->socket->reconnectToServer( proxyIP.ipString(), proxyIP.port());
    644626  this->handleDisconnect( userId);
    645 //   this->connectToProxyServer(proxyIP.ipString(), 9999);
     627  this->connectToProxyServer(proxyIP.ipString(), 9999);
    646628#warning the ports are not yet integrated correctly in the ip class
    647629
Note: See TracChangeset for help on using the changeset viewer.