OpenSessions

nn::dlp::CTR::Server::OpenSessions Member Function

Syntax

static nn::Result OpenSessions(
     bool isManualAccept = false,
     u8 channel = 0
);

Parameters

Name Description
in isManualAccept true: Allows client connections using the AcceptClient function. false : Allows client connections unconditionally.
in channel Specify the channel as 0 (auto select), 1, 6, or 11. On the production device, 0 is forcibly selected.

Return Values

The following Result values are returned as the result of the operation.

Value Description
Result::IsSuccess The session started successfully.
ResultOutOfRange An invalid channel was specified.
ResultInvalidState The state is invalid. Use with SERVER_STATE_INITIALIZED.
ResultWirelessOff Communications cannot occur in this state (sleep or the wireless switch is off).

Description

Begins download sessions.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL