LDN services: Difference between revisions
No edit summary |
|||
Line 257: | Line 257: | ||
This cmd was implemented with [20.0.0+], prior to that this just returned an error. | This cmd was implemented with [20.0.0+], prior to that this just returned an error. | ||
The sdk user-process func will pass value 1 to the cmd when the input [[#Protocol|Protocol]] is 0/1, 3 is passed directly if specified, otherwise Abort. | The sdk user-process func will pass value 1 to the cmd when the input [[#Protocol|Protocol]] is 0/1, 3 is passed directly if specified, otherwise Abort. User-processes use SetProtocol immediately after initializing ldn. | ||
The input is validated, then a vfunc is called. | The input is validated, then a vfunc is called. | ||
Line 267: | Line 267: | ||
The vfunc sends a message to another thread with the input u32 as the param, and returns the response from that. | The vfunc sends a message to another thread with the input u32 as the param, and returns the response from that. | ||
The thread msg-queue-handler (besides other validation) uses the input param to select what values to write to state fields. Only input value 1 or 3 is allowed, with an error being thrown otherwise. | The thread msg-queue-handler (besides other validation) uses the input param to select what values to write to state fields. Only input value 1 or 3 is allowed, with an error being thrown otherwise. The previously mentioned validation includes verifying that [[#GetState|State]] is Initialized. | ||
=== OpenAccessPoint === | === OpenAccessPoint === | ||
Line 1,360: | Line 1,360: | ||
|} | |} | ||
There's presumably a S2-only value which enables using Ounce-only keys. Attempting to decrypt Ounce-only ldn with the Protocol3 keys fails (including with [[#Scan|Scan]]/[[#ScanPrivate|ScanPrivate]]), with the following: | The Initialize* cmds configure state the same as using [[#SetProtocol|SetProtocol]] with Protocol NX. | ||
There's presumably a S2-only value which enables using Ounce-only keys. Attempting to decrypt Ounce-only ldn with the Protocol3 keys fails (including with [[#Scan|Scan]]/[[#ScanPrivate|ScanPrivate]]), with the following (with S2 hosting): | |||
* In-game ldn-usage for a S2-only Application. | * In-game ldn-usage for a S2-only Application. | ||
* Local-game-update with a S2-only Application. | * Local-game-update with a S2-only Application. |