diff options
| author | Subv <subv2112@gmail.com> | 2016-12-05 13:59:57 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2016-12-05 13:59:57 -0500 |
| commit | c93c5a72bb46796e898f54a7c13dfb8d941ddd4d (patch) | |
| tree | 1e5bded69840948daaa8b27bcba05a14b38dcb75 /src/core/hle/kernel/client_port.h | |
| parent | 61a2fe8c3bcd5e6dc7e97945b923d1a5bd8099ec (diff) | |
Return an error code when connecting to a saturated port.
The error code was taken from the 3DS kernel.
Diffstat (limited to 'src/core/hle/kernel/client_port.h')
| -rw-r--r-- | src/core/hle/kernel/client_port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h index d217c6649..0039cf028 100644 --- a/src/core/hle/kernel/client_port.h +++ b/src/core/hle/kernel/client_port.h @@ -31,9 +31,9 @@ public: /** * Creates a new Session pair, adds the created ServerSession to the associated ServerPort's list of pending sessions, * and signals the ServerPort, causing any threads waiting on it to awake. - * @returns ClientSession The client endpoint of the created Session pair. + * @returns ClientSession The client endpoint of the created Session pair, or error code. */ - SharedPtr<ClientSession> Connect(); + 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 |
