This sample demonstrates the task of downloading data from the download server provided by Nintendo.
A connection target wireless access point is required. Ready a wireless access point that can connect to the Internet.
You must also insert an SD Card into the PARTNER-CTR Debugger in advance.
None.
debug_connect
demo.NetworkSetting.csu
, included in the CTR-SDK.dPolicy.Initialize
part of source code with the commented out part that uses the dPolicy.InitializeWithSecInterval
API for testing. boss::UnregisterTask
function.)boss::NsData::Delete
function.)When the demo is executed, the following log is displayed in debug output.
The log represents content after executing two or more times.
nn::boss::Initialize : RC=0x00000000 Initializing network. BOSS Sample(NadlTaskSimple) Start [BOSS Sample]Regist NADL Task. [BOSS Sample]Start NADL Task. [BOSS Sample]Wait NSA data arrive.... [BOSS Sample]Recognize NSA data arrive [BOSS Sample](Before Read Data, NewArrivalFlag is 1.) [BOSS Sample]Dump NSD datas(1).(data number = 1) ===NSD No.0(SerialID = 1)=== TitleID = 400000ff3ff00 Content SerialID = 1 Payload Length = 36 Content version = 1 Content Flags = 0 Content DataType = 65537 ---Dump Data--- (Read 1) ---NSD Body Dump(Payload-Length=36)--- 23 20 62 6f 73 73 5f 73 61 6d 70 6c 65 5f 64 65 6d 6f 0d 0a 64 65 6d 6f 66 69 6c 65 82 c5 82 b7 81 44 0d 0a (Read 2) ---NSD Body Dump(Payload-Length=0)--- [BOSS Sample]AdditionalInfo = 256(Set Info = 256) [BOSS Sample]NSD Read Flag = 0 [BOSS Sample](After Read Data, NewArrivalFlag is 0.) [BOSS Sample](After NSD read flag on, New NSD number is = 0) BOSS Sample(NadlTaskSimple) END Finalizing network. nn::boss::Finalize : RC=0x00000000 END
CONFIDENTIAL