Server(const Config::Network &, World &, const World::Config &, const WorldSave &);
~Server();
+ // wait for data to arrive for at most dt milliseconds
+ void Wait(int dt) noexcept;
+ // true if there's data waiting to be handled
+ bool Ready() noexcept;
void Handle();
void Update(int dt);
private:
UDPsocket serv_sock;
UDPpacket serv_pack;
+ SDLNet_SocketSet serv_set;
std::list<ClientConnection> clients;
World &world;