diff --git a/server/CVCMIServer.h b/server/CVCMIServer.h new file mode 100644 index 000000000..ad1a26af1 --- /dev/null +++ b/server/CVCMIServer.h @@ -0,0 +1,31 @@ +#pragma once +#include "../global.h" +#include +namespace boost +{ + namespace asio + { + class io_service; + namespace ip + { + class tcp; + } + template class socket_acceptor_service; + template + class basic_socket_acceptor; + } +}; + +class CVCMIServer +{ + boost::asio::io_service *io; + boost::asio::basic_socket_acceptor > * acceptor; + std::map connections; + std::set conns; +public: + CVCMIServer(); + ~CVCMIServer(); + void setUpConnection(CConnection *c, std::string mapname, si32 checksum); + void newGame(CConnection &c); + void start(); +}; \ No newline at end of file