Sockets services: Difference between revisions

Line 177: Line 177:
== RegisterResourceStatisticsName ==
== RegisterResourceStatisticsName ==
[10.0.0+] Now takes an additional 8-bytes of input.
[10.0.0+] Now takes an additional 8-bytes of input.
== RegisterClientShared ==
Same input/output as [[#RegisterClient]] except this doesn't take an input handle.
The work-buffer (size is still specified with this cmd) is backed by memory in the sysmodule, instead of TransferMemory. The size (after alignment) must be >=0x1000 and <=0x13F000.
sdknso will only use this cmd when two flags in the input config are set: the first one being set indicates that the bsd:s service is used, while the second flag enables using this cmd. An error is thrown if the work-buffer size is <0x1000. Otherwise when these flags aren't set, [[#RegisterClient]] is used as usual.


== Cmd36 ==
== Cmd36 ==
Line 184: Line 191:


On Ounce this is used as a new version of RegisterClient*, when initializing bsd:s/bsd:a.
On Ounce this is used as a new version of RegisterClient*, when initializing bsd:s/bsd:a.
== Cmd38 ==
Takes 4-bytes of input and a type-0x21 input buffer. Returns a total of 8-bytes of output.
On NX this just returns Result 0 and writes an error to output.


== Cmd39 ==
== Cmd39 ==
[21.0.0+] Now no longer returns two output handles.
[21.0.0+] Now no longer returns two output handles.


== RegisterClientShared ==
On NX this writes errors to output.
Same input/output as [[#RegisterClient]] except this doesn't take an input handle.


The work-buffer (size is still specified with this cmd) is backed by memory in the sysmodule, instead of TransferMemory. The size (after alignment) must be >=0x1000 and <=0x13F000.
== Cmd41 ==
 
On NX this writes errors to output.
sdknso will only use this cmd when two flags in the input config are set: the first one being set indicates that the bsd:s service is used, while the second flag enables using this cmd. An error is thrown if the work-buffer size is <0x1000. Otherwise when these flags aren't set, [[#RegisterClient]] is used as usual.


= bsdcfg, ifcfg =
= bsdcfg, ifcfg =