mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Move network protocol implementation behind an interface
This commit is contained in:
parent
c6ef5ab259
commit
7968ab6928
18 changed files with 2109 additions and 2054 deletions
|
@ -168,7 +168,7 @@ class EmergeManager;
|
|||
|
||||
*/
|
||||
namespace con {
|
||||
class Connection;
|
||||
class IConnection;
|
||||
}
|
||||
|
||||
|
||||
|
@ -464,7 +464,7 @@ public:
|
|||
|
||||
friend class Server;
|
||||
|
||||
ClientInterface(const std::shared_ptr<con::Connection> &con);
|
||||
ClientInterface(const std::shared_ptr<con::IConnection> &con);
|
||||
~ClientInterface();
|
||||
|
||||
/* run sync step */
|
||||
|
@ -543,7 +543,7 @@ private:
|
|||
void UpdatePlayerList();
|
||||
|
||||
// Connection
|
||||
std::shared_ptr<con::Connection> m_con;
|
||||
std::shared_ptr<con::IConnection> m_con;
|
||||
std::recursive_mutex m_clients_mutex;
|
||||
// Connected clients (behind the con mutex)
|
||||
RemoteClientMap m_clients;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue