nn::dlp::CTR::Server::AcceptClient Member Function

Syntax

static nn::Result AcceptClient(
     u16 nodeId
);

Arguments

Name Description
in nodeId Specifies the client's node ID.

Return Values

The following Results are returned as the result of the operation.

Value Description
ResultSuccess 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.

Description

Allows client connections.

Call the OpenSession 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.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL