Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 381


Ignore:
Timestamp:
Dec 4, 2007, 10:00:43 PM (16 years ago)
Author:
scheusso
Message:

using stl-map and stl-vector in ConnectionManaget should now work

Location:
code/branches/FICN/src/network
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ConnectionManager.cc

    r380 r381  
    1212#include "ConnectionManager.h"
    1313
     14namespace std{
     15  bool operator< (ENetAddress a, ENetAddress b){
     16    if(a.host <= b.host)
     17      return true;
     18    else
     19      return false;
     20  }
     21}
     22
    1423namespace network{
    1524
    1625  boost::thread_group network_threads;
    17 
     26 
    1827  ConnectionManager::ConnectionManager(){
    1928    quit=false;
  • code/branches/FICN/src/network/ConnectionManager.h

    r380 r381  
    2626#include "PacketBuffer.h"
    2727
     28namespace std{
     29  bool operator<(ENetAddress a, ENetAddress b);
     30}
     31
    2832namespace network{
    2933  //
     
    3842    ClientList *next;
    3943  };
    40 
     44 
    4145  class ConnectionManager{
    4246    public:
  • code/branches/FICN/src/network/Server.cc

    r380 r381  
    100100  void Server::processQueue(){
    101101    ENetPacket *packet;
     102    int clientID=-1;
    102103    while(!connection.queueEmpty()){
    103       packet = connection.getPacket()
     104      packet = connection.getPacket(clientID);
    104105    }
    105106  }
Note: See TracChangeset for help on using the changeset viewer.