aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/server_port.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-06-23 22:34:02 -0700
committerGitHub <noreply@github.com>2017-06-23 22:34:02 -0700
commitcf15b651ed475adcd53c72edd83e8b80f1f5fbee (patch)
treed4f4be2c9ed527b9f4df3a74e686a2722e5e05be /src/core/hle/kernel/server_port.h
parent6d436d7a5244ce54ae8ff7990cf8b90e9ea70355 (diff)
parente192d417ecc24648106cf3d088bd715525f83e5e (diff)
Merge pull request #2801 from yuriks/session-svcs
Implement CreateSessionToPort and AcceptSession; fix CreatePort
Diffstat (limited to 'src/core/hle/kernel/server_port.h')
-rw-r--r--src/core/hle/kernel/server_port.h11
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.