nn::dlp::CTR::Server::AcceptClient Member Functionstatic nn::Result AcceptClient( u16 nodeId );
| Name | Description | |
|---|---|---|
| in | nodeId | Specifies the client's node ID. |
Result values are returned as the result of the operation.| Value | Description |
|---|---|
Result::IsSuccess |
Connection approval was successful. |
ResultInvalidState |
The state is invalid. Use with the SERVER_STATE_OPENED_SESSIONS state (after OpenSessions() was successful). |
ResultNoData |
Nodes with the specified node ID are not connected. |
Allows client connections.
Call the OpenSessions function with the isManualAccept argument set to true to enter the CLIENT_STATE_WAITING_ACCEPT state after the connection and continue waiting for permission from the server. Call this function to allow this client to connect. After calling, the client transitions to the CLIENT_STATE_WAITING_INVITE state. Call the DisconnectClient function to reject the connection and disconnect.
CONFIDENTIAL