equal
deleted
inserted
replaced
|
1 |
1 #include "Server.hh" |
2 #include "Server.hh" |
|
3 #include "Protocol.hh" |
|
4 #include "Config.hh" |
2 #include "../Engine.hh" |
5 #include "../Engine.hh" |
3 #include "../Logger.hh" |
6 #include "../Logger.hh" |
4 |
7 |
5 #include <cassert> |
8 #include <cassert> |
6 |
9 |
7 NetworkServer::NetworkServer (GameState &state, const NetworkAddress &listen_addr) : |
10 NetworkServer::NetworkServer (GameState &state, const NetworkAddress &listen_addr) : |
8 NetworkCore(state), netsession(NETWORK_MAGIC_ID), netobjs(netsession, NETCHAN_CORE) { |
11 state(state), netsession(NETWORK_MAGIC_ID), netobjs(netsession, NETCHAN_CORE) { |
9 |
12 |
10 // connect slots |
13 // connect slots |
11 slots.connect(netsession.sig_node_connected(), this, &NetworkServer::on_node_connected); |
14 slots.connect(netsession.sig_node_connected(), this, &NetworkServer::on_node_connected); |
12 |
15 |
13 // and then we listen |
16 // and then we listen |