mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2026-03-13 19:14:40 +00:00
34 lines
681 B
C++
34 lines
681 B
C++
#pragma once
|
|
|
|
#include <mesosphere/core/KSynchronizationObject.hpp>
|
|
#include <mesosphere/processes/KLightServerSession.hpp>
|
|
|
|
namespace mesosphere
|
|
{
|
|
|
|
class KPort;
|
|
class KClientPort;
|
|
|
|
class KServerPort final :
|
|
public KSynchronizationObject,
|
|
public IServer<KPort, KClientPort, KServerPort> {
|
|
|
|
public:
|
|
|
|
MESOSPHERE_AUTO_OBJECT_TRAITS(SynchronizationObject, ServerPort);
|
|
|
|
virtual ~KServerPort();
|
|
|
|
virtual bool IsSignaled() const override;
|
|
|
|
private:
|
|
friend class KPort;
|
|
Result AddLightServerSession(KLightServerSession &lightServerSession);
|
|
|
|
KLightServerSession::List lightServerSessions{};
|
|
};
|
|
|
|
MESOSPHERE_AUTO_OBJECT_DEFINE_INCREF(ServerPort);
|
|
|
|
}
|