Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2007, 4:26:02 PM (17 years ago)
Author:
nicolasc
Message:
  • added FIXME-tags - should be selfexplanatory
Location:
code/branches/FICN/src/network
Files:
2 edited

Legend:

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

    r636 r660  
    5050    gamestates = new GameStateManager(clients);
    5151  }
    52  
     52
    5353  /**
    5454   * This function opens the server by creating the listener thread
     
    5858    return;
    5959  }
    60  
     60
    6161  /**
    6262   * This function closes the server
     
    6666    return;
    6767  }
    68  
     68
    6969  /**
    7070   * This function sends out a message to all clients
     
    9595    return false;
    9696  }
    97  
     97
    9898  /**
    9999   * Run this function once every tick
     
    106106    return;
    107107  }
    108  
     108
    109109  /**
    110110   * processes all the packets waiting in the queue
     
    119119    }
    120120  }
    121  
     121
    122122  /**
    123123   * takes a new snapshot of the gamestate and sends it to the clients
     
    129129    //std::cout << "sent gamestate" << std::endl;
    130130  }
    131  
     131
    132132  /**
    133133   * sends the gamestate
     
    151151      int cid = temp->getID();
    152152      std::cout << "server, got acked ID: " << gid << std::endl;
    153       GameStateCompressed *gs = &(gamestates->popGameState(cid));
     153      GameStateCompressed *gs = &(gamestates->popGameState(cid)); // FIXME: taking address of temporary, check if correct
    154154      //std::cout << "adding gamestate" << std::endl;
    155155      connection->addPacket(packet_gen.gstate(gs), cid);
     
    163163    //return true;
    164164  }
    165  
     165
    166166  void Server::processAck( ack *data, int clientID){
    167167    clients->findClient(clientID)->setGamestateID(data->a);
    168168  }
    169  
     169
    170170}
  • code/branches/FICN/src/network/dummyclient2.cc

    r538 r660  
    6565    std::cout << "Connection failed" << std::endl;
    6666
    67   ENetPacket *packet;
     67  ENetPacket *packet;  //FIXME: unused var!
    6868  ENetEvent event;
    6969
Note: See TracChangeset for help on using the changeset viewer.