src/Network/Client.cc
changeset 381 9b35bc329d23
parent 334 0cf3f2be51eb
child 387 294ce7ae8140
equal deleted inserted replaced
380:d193dd1d8a7e 381:9b35bc329d23
     5 #include "../Engine.hh"
     5 #include "../Engine.hh"
     6 #include "../Logger.hh"
     6 #include "../Logger.hh"
     7 
     7 
     8 #include <cassert>
     8 #include <cassert>
     9 
     9 
    10 NetworkClient::NetworkClient (Engine &engine, GameState &state, const NetworkAddress &connect_to) : 
    10 NetworkClient::NetworkClient (Engine &engine, GameState &state, const NetworkEndpoint &connect_to) : 
    11     engine(engine), state(state), netsession(NETWORK_MAGIC_ID), server(netsession.connect(connect_to)),
    11     engine(engine), state(state), netsession(NETWORK_MAGIC_ID), server(netsession.connect(connect_to)),
    12     controller(*this)
    12     controller(*this)
    13 {
    13 {
    14     // connect slots
    14     // connect slots
    15     slots.connect(netsession.sig_chan_message(NETCHAN_TERRAIN_ARRAY), this, &NetworkClient::on_terrain_array);
    15     slots.connect(netsession.sig_chan_message(NETCHAN_TERRAIN_ARRAY), this, &NetworkClient::on_terrain_array);