#ifndef __CVCMISERVER_H__ #define __CVCMISERVER_H__ #include "../global.h" #include class CConnection; 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 loadGame(CConnection *c); void start(); }; #endif // __CVCMISERVER_H__