fully implement KeepAlive behavior

This commit is contained in:
2024-07-21 20:59:13 +02:00
parent 36a2e67ac4
commit 92a2e53036
25 changed files with 513 additions and 61 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#include <Nazara/Network/ENetHost.hpp>
#include <blitz/network/EnetConnexion.h>
#include <blitz/network/EnetConnection.h>
#include <thread>
namespace blitz {
@@ -18,12 +18,12 @@ class EnetClient : private NonCopyable {
NazaraSignal(OnDisconnect);
NazaraSignal(OnDisconnectTimeout);
const EnetConnexion& GetConnexion() const {
return m_Connexion;
EnetConnection& GetConnection() {
return m_Connection;
}
private:
EnetConnexion m_Connexion;
EnetConnection m_Connection;
Nz::ENetHost m_Host;
Nz::ENetPeer* m_Peer;
std::thread m_Thread;