Moved UDP logic from Hybrid server/client to UDP server/client. fixed bug in Server::CheckForTimeOuts.
This commit is contained in:
@@ -13,14 +13,14 @@ private:
|
||||
boost::asio::io_service m_IOService;
|
||||
std::unique_ptr<boost::asio::ip::tcp::acceptor> acceptor;
|
||||
boost::shared_ptr<boost::asio::ip::tcp::socket> lastReceivedSocket;
|
||||
|
||||
void readFromClients();
|
||||
|
||||
void acceptNewConnections();
|
||||
void handle_accept(boost::shared_ptr<boost::asio::ip::tcp::socket> socket, const boost::system::error_code & error);
|
||||
void readFromClients();
|
||||
int receive(char * data, boost::asio::ip::tcp::socket& socket);
|
||||
void parseConnect(Packet & packet);
|
||||
void send(Packet & packet, PlayerDefinition & playerDefinition);
|
||||
void send(Packet & packet);
|
||||
int receive(char * data, boost::asio::ip::tcp::socket& socket);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user