nn::dlp::CTR::Server::Initialize Member Function

Syntax

static nn::Result Initialize(
     nn::Handle eventHandle,
     u8 maxClientNum,
     nn::ProgramId programId,
     void * pBuffer,
     size_t bufferSize
);

Arguments

Name Description
in eventHandle Specifies a handle to the nn::os::Event object waiting for a signal from download play. Initialize the event in the application. Use the GetEventDesc function to get the event information.
in maxClientNum Specifies the maximum number of clients (from 1 to MAX_CLIENT_NUM) that can connect to the server.
in programId Specifies the program ID of the title to distribute.
in pBuffer Pointer to the DLP working buffer. Must be 4096-byte aligned.
in bufferSize Size of working buffer. Must be 4096-byte aligned.

Return Values

Returns the result of the operation.

Description

Initializes the server.

For the pBuffer argument, specify a 4096-byte aligned buffer of the size specified by the GetBufferSize function. Do not use device memory for the buffer. The maximum size of titles that can be distributed is 16 MB.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL