diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-23 08:57:05 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-23 20:26:37 +0200 |
commit | e192d417ecc24648106cf3d088bd715525f83e5e (patch) | |
tree | d4f4be2c9ed527b9f4df3a74e686a2722e5e05be /src/core/hle/kernel/server_port.h | |
parent | Kernel: Fix SVC wrapper for CreatePort (diff) | |
download | yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar.gz yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar.bz2 yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar.lz yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar.xz yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.tar.zst yuzu-e192d417ecc24648106cf3d088bd715525f83e5e.zip |
Diffstat (limited to 'src/core/hle/kernel/server_port.h')
-rw-r--r-- | src/core/hle/kernel/server_port.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/hle/kernel/server_port.h b/src/core/hle/kernel/server_port.h index f1419cd46..6fe7c7f2f 100644 --- a/src/core/hle/kernel/server_port.h +++ b/src/core/hle/kernel/server_port.h @@ -14,6 +14,7 @@ namespace Kernel { class ClientPort; +class ServerSession; class SessionRequestHandler; class ServerPort final : public WaitObject { @@ -41,6 +42,12 @@ public: } /** + * Accepts a pending incoming connection on this port. If there are no pending sessions, will + * return ERR_NO_PENDING_SESSIONS. + */ + ResultVal<SharedPtr<ServerSession>> Accept(); + + /** * Sets the HLE handler template for the port. ServerSessions crated by connecting to this port * will inherit a reference to this handler. */ @@ -50,8 +57,8 @@ public: std::string name; ///< Name of port (optional) - std::vector<SharedPtr<WaitObject>> - pending_sessions; ///< ServerSessions waiting to be accepted by the port + /// ServerSessions waiting to be accepted by the port + std::vector<SharedPtr<ServerSession>> pending_sessions; /// This session's HLE request handler template (optional) /// ServerSessions created from this port inherit a reference to this handler. |