src/Engine.cc
changeset 378 5589abf5e61b
parent 332 78657bf06302
child 380 d193dd1d8a7e
equal deleted inserted replaced
377:01d3c340b372 378:5589abf5e61b
    20     net_server = new NetworkServer(game_state, listen_port);
    20     net_server = new NetworkServer(game_state, listen_port);
    21 }
    21 }
    22 
    22 
    23 void Engine::setupNetworkClient (const std::string &connect_host, const std::string &connect_port) {
    23 void Engine::setupNetworkClient (const std::string &connect_host, const std::string &connect_port) {
    24     // connect_to
    24     // connect_to
    25     CL_IPAddress connect_addr(connect_host, connect_port);
    25     NetworkAddress connect_addr(connect_host, connect_port);
    26 
    26 
    27     // create the client
    27     // create the client
    28     net_client = new NetworkClient(*this, game_state, connect_addr);
    28     net_client = new NetworkClient(*this, game_state, connect_addr);
    29 }
    29 }
    30 
    30