fully implement KeepAlive behavior
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user