mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Forgot to add this file
This commit is contained in:
parent
b72d065265
commit
88c9d8d72d
31
server/CVCMIServer.h
Normal file
31
server/CVCMIServer.h
Normal file
@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "../global.h"
|
||||
#include <set>
|
||||
namespace boost
|
||||
{
|
||||
namespace asio
|
||||
{
|
||||
class io_service;
|
||||
namespace ip
|
||||
{
|
||||
class tcp;
|
||||
}
|
||||
template <typename Protocol> class socket_acceptor_service;
|
||||
template <typename Protocol,typename SocketAcceptorService>
|
||||
class basic_socket_acceptor;
|
||||
}
|
||||
};
|
||||
|
||||
class CVCMIServer
|
||||
{
|
||||
boost::asio::io_service *io;
|
||||
boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_service<boost::asio::ip::tcp> > * acceptor;
|
||||
std::map<int,CConnection*> connections;
|
||||
std::set<CConnection*> conns;
|
||||
public:
|
||||
CVCMIServer();
|
||||
~CVCMIServer();
|
||||
void setUpConnection(CConnection *c, std::string mapname, si32 checksum);
|
||||
void newGame(CConnection &c);
|
||||
void start();
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user