summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/client_port.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-07 17:20:26 +0200
committerGitHub <noreply@github.com>2018-08-07 17:20:26 +0200
commit8f73f41824f19ebc96a79dabbb7cbb8c94f68e16 (patch)
treeb3cba5d65ce5d65f203857369203e9c3b9fb7643 /src/core/hle/kernel/client_port.h
parentMerge pull request #951 from lioncash/glad (diff)
parentclient_port: Make all data members private (diff)
downloadyuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar.gz
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar.bz2
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar.lz
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar.xz
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.tar.zst
yuzu-8f73f41824f19ebc96a79dabbb7cbb8c94f68e16.zip
Diffstat (limited to 'src/core/hle/kernel/client_port.h')
-rw-r--r--src/core/hle/kernel/client_port.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h
index b42c94bde..b1269ea5c 100644
--- a/src/core/hle/kernel/client_port.h
+++ b/src/core/hle/kernel/client_port.h
@@ -37,14 +37,20 @@ public:
*/
ResultVal<SharedPtr<ClientSession>> Connect();
- SharedPtr<ServerPort> server_port; ///< ServerPort associated with this client port.
- u32 max_sessions; ///< Maximum number of simultaneous sessions the port can have
- u32 active_sessions; ///< Number of currently open sessions to this port
- std::string name; ///< Name of client port (optional)
+ /**
+ * Signifies that a previously active connection has been closed,
+ * decreasing the total number of active connections to this port.
+ */
+ void ConnectionClosed();
private:
ClientPort();
~ClientPort() override;
+
+ SharedPtr<ServerPort> server_port; ///< ServerPort associated with this client port.
+ u32 max_sessions = 0; ///< Maximum number of simultaneous sessions the port can have
+ u32 active_sessions = 0; ///< Number of currently open sessions to this port
+ std::string name; ///< Name of client port (optional)
};
} // namespace Kernel