diff options
| author | Subv <subv2112@gmail.com> | 2016-12-08 15:01:10 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2016-12-08 15:01:10 -0500 |
| commit | 17d8d69c6ed6cd3cdea76791c98c36b43c4e288c (patch) | |
| tree | 7cb27e289abd255ff7f371eff0f9d1ddd07b5d11 /src/core/hle/kernel/client_session.h | |
| parent | 021e7328150cff280f0a0f5efb28ded741374877 (diff) | |
Added a framework for partially handling Session disconnections.
Further implementation will happen in a future commit.
Fixes a regression.
Diffstat (limited to 'src/core/hle/kernel/client_session.h')
| -rw-r--r-- | src/core/hle/kernel/client_session.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/hle/kernel/client_session.h b/src/core/hle/kernel/client_session.h index 45f4799016..fedbd0625e 100644 --- a/src/core/hle/kernel/client_session.h +++ b/src/core/hle/kernel/client_session.h @@ -15,6 +15,12 @@ namespace Kernel { class ServerSession; +enum class SessionStatus { + Open = 1, + ClosedByClient = 2, + ClosedBYServer = 3, +}; + class ClientSession final : public Object { public: friend class ServerSession; @@ -39,7 +45,8 @@ public: ResultCode SendSyncRequest(); std::string name; ///< Name of client port (optional) - SharedPtr<ServerSession> server_session; ///< The server session associated with this client session. + ServerSession* server_session; ///< The server session associated with this client session. + SessionStatus session_status; ///< The session's current status. private: ClientSession(); @@ -51,7 +58,7 @@ private: * @param name Optional name of client session * @return The created client session */ - static ResultVal<SharedPtr<ClientSession>> Create(SharedPtr<ServerSession> server_session, std::string name = "Unknown"); + static ResultVal<SharedPtr<ClientSession>> Create(ServerSession* server_session, std::string name = "Unknown"); }; } // namespace |
