meso: impl AddServerSession

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:08 -07:00
1 parent 173bde2eca
commit efe7325af3
5 files changed
+40 -3

No files matched your search

@@ -27,6 +27,7 @@ class KClientPort final :
private:
friend class KPort;
std::atomic<int> numSessions{0}, currentCapacity{0}, maxSessions{0};
};
MESOSPHERE_AUTO_OBJECT_DEFINE_INCREF(ClientPort);
@@ -6,6 +6,7 @@
#include <mesosphere/interfaces/ISetAllocated.hpp>
#include <mesosphere/processes/KClientPort.hpp>
#include <mesosphere/processes/KServerPort.hpp>
#include <mesosphere/processes/KLightServerSession.hpp>
namespace mesosphere
{
@@ -20,12 +21,14 @@ class KPort final :
virtual ~KPort();
Result Initialize();
Result Initialize(int maxSessions, bool isLight);
private:
friend class KClientPort;
friend class KServerPort;
Result AddServerSession(KLightServerSession &lightServerSession);
bool isClientAlive = false;
bool isServerAlive = false;
bool isLight = false;
@@ -23,7 +23,9 @@ class KServerPort final :
private:
friend class KPort;
Result AddServerSession(KLightServerSession &lightServerSession);
KLightServerSession::List lightServerSessions{};
};
MESOSPHERE_AUTO_OBJECT_DEFINE_INCREF(ServerPort);