Sockets services: Difference between revisions

No edit summary
Line 394: Line 394:
| 15 || [4.0.0+] [[#SetChangeEnvironmentIdentifierDisabled]]
| 15 || [4.0.0+] [[#SetChangeEnvironmentIdentifierDisabled]]
|-
|-
| 20 || Resolve
| 20 || [[#Resolve]]
|-
|-
| 21 || ResolveEx
| 21 || [[#ResolveEx]]
|-
|-
| 30 || GetNasServiceSetting
| 30 || [[#GetNasServiceSetting]]
|-
|-
| 31 || GetNasServiceSettingEx
| 31 || [[#GetNasServiceSettingEx]]
|-
|-
| 40 || GetNasRequestFqdn
| 40 || [[#GetNasRequestFqdn]]
|-
|-
| 41 || GetNasRequestFqdnEx
| 41 || [[#GetNasRequestFqdnEx]]
|-
|-
| 42 || GetNasApiFqdn
| 42 || [[#GetNasApiFqdn]]
|-
|-
| 43 || GetNasApiFqdnEx
| 43 || [[#GetNasApiFqdnEx]]
|-
|-
| 50 || [[#GetCurrentSetting]]
| 50 || [[#GetCurrentSetting]]
Line 422: Line 422:
| 62 || [[#DeleteSaveDataOfFsForTest]]
| 62 || [[#DeleteSaveDataOfFsForTest]]
|-
|-
| 63 || [4.0.0+] IsChangeEnvironmentIdentifierDisabled
| 63 || [4.0.0+] [[#IsChangeEnvironmentIdentifierDisabled]]
|-
|-
| 64 || [10.0.0+] [[#SetWithoutDomainExchangeFqdns]]
| 64 || [10.0.0+] [[#SetWithoutDomainExchangeFqdns]]
|-
|-
| 100 || [10.0.0+] GetApplicationServerEnvironmentType
| 100 || [10.0.0+] [[#GetApplicationServerEnvironmentType]]
|-
|-
| 101 || [10.0.0+] SetApplicationServerEnvironmentType
| 101 || [10.0.0+] [[#SetApplicationServerEnvironmentType]]
|-
|-
| 102 || [10.0.0+] DeleteApplicationServerEnvironmentType
| 102 || [10.0.0+] [[#DeleteApplicationServerEnvironmentType]]
|}
|}


== GetSettingUrl ==
== GetSettingUrl ==
Takes a type-0x16 output buffer.
Takes a type-0x16 output buffer containing an [[#Url]].


Gets the 0x100-byte [[System_Settings|sys-setting]] for <code>nsd!setting_url</code> with the data being located on stack, memcpys the 0x100-bytes to the output buffer, then returns 0.
Gets the 0x100-byte [[System_Settings|sys-setting]] for <code>nsd!setting_url</code> with the data being located on stack, memcpys the 0x100-bytes to the output buffer, then returns 0.


== GetSettingName ==
== GetSettingName ==
Takes a type-0x16 output buffer.
Takes a type-0x16 output buffer containing a [[#SettingName]].


Calls a func with output located on stack. If successful the 0x100-bytes from there is memcpy'd to the output buffer, then returns 0.
Calls a func with output located on stack. If successful the 0x100-bytes from there is memcpy'd to the output buffer, then returns 0.
Line 446: Line 446:


== GetEnvironmentIdentifier ==
== GetEnvironmentIdentifier ==
Takes a type-0x16 buffer with size 8. Returns a string.
Takes a type-0x16 buffer containing an [[#EnvironmentIdentifier]].


The output string is used by [[NIM_services|NIM]] for the "eid:%s" in the User-Agent strings.
The output string is used by [[NIM_services|NIM]] for the "eid:%s" in the User-Agent strings.
Line 453: Line 453:


== GetDeviceId ==
== GetDeviceId ==
No input, returns 0x10-bytes of output.
No input, returns a [[#DeviceId]].


Stubbed, just returns 0.
Stubbed, just returns 0.
Line 471: Line 471:


This is only usable with nsd:a.
This is only usable with nsd:a.
== Resolve ==
Takes a type-0x16 output buffer containing a [[#Fqdn]] and a type-0x15 input buffer containing a [[#Fqdn]].
== ResolveEx ==
Takes a type-0x16 output buffer containing a [[#Fqdn]] and a type-0x15 input buffer containing a [[#Fqdn]], returns an output u32 "nn::nsd::InnerResult".
The official user-process wrapper code writes the output InnerResult to an output field as a "nn::Result".
== GetNasServiceSetting ==
Takes a type-0x16 output buffer containing a [[#NasServiceSetting]], a type-0x15 input buffer containing a [[#NasServiceName]].
== GetNasServiceSettingEx ==
Takes a type-0x16 output buffer containing a [[#NasServiceSetting]], a type-0x15 input buffer containing a [[#NasServiceName]], returns an output u32 "nn::nsd::InnerResult".
The official user-process wrapper code writes the output InnerResult to an output field as a "nn::Result".
== GetNasRequestFqdn ==
Takes a type-0x16 output buffer containing a [[#Fqdn]].
== GetNasRequestFqdnEx ==
Takes a type-0x16 output buffer containing a [[#Fqdn]], returns an output u32 "nn::nsd::InnerResult".
The official user-process wrapper code writes the output InnerResult to an output field as a "nn::Result".
== GetNasApiFqdn ==
Takes a type-0x16 output buffer containing a [[#Fqdn]].
== GetNasApiFqdnEx ==
Takes a type-0x16 output buffer containing a [[#Fqdn]], returns an output u32 "nn::nsd::InnerResult".
The official user-process wrapper code writes the output InnerResult to an output field as a "nn::Result".


== GetCurrentSetting ==
== GetCurrentSetting ==
Takes a type-0x16 output buffer containing a 0x12BF0-byte struct.
Takes a type-0x16 output buffer containing a [[#SaveData]].


This is only usable with nsd:a.
This is only usable with nsd:a.
Line 479: Line 511:
== WriteTestParameter ==
== WriteTestParameter ==
Takes a type-0x5 input buffer, no output.
Takes a type-0x5 input buffer, no output.
Official sw uses [[#TestParameter]] for the buffer.


This is only usable with nsd:a.
This is only usable with nsd:a.
Line 484: Line 518:
== ReadTestParameter ==
== ReadTestParameter ==
Takes a type-0x6 output buffer.
Takes a type-0x6 output buffer.
Official sw uses [[#TestParameter]] for the buffer.


This is only usable with nsd:a.
This is only usable with nsd:a.


== ReadSaveDataFromFsForTest ==
== ReadSaveDataFromFsForTest ==
Takes a type-0x16 output buffer containing a [[#SaveData]].
This is only usable with nsd:a.
This is only usable with nsd:a.


Line 495: Line 533:


== WriteSaveDataToFsForTest ==
== WriteSaveDataToFsForTest ==
Takes a type-0x15 input buffer containing a [[#SaveData]].
This is only usable with nsd:a. Requires the <code>nsd!test_mode</code> setting to be equal to 1.
This is only usable with nsd:a. Requires the <code>nsd!test_mode</code> setting to be equal to 1.


Line 500: Line 540:


== DeleteSaveDataOfFsForTest ==
== DeleteSaveDataOfFsForTest ==
No input/output.
This is only usable with nsd:a. Requires the <code>nsd!test_mode</code> setting to be equal to 1.
This is only usable with nsd:a. Requires the <code>nsd!test_mode</code> setting to be equal to 1.


Deletes the system save data for bsdsockets.
Deletes the system save data for bsdsockets.
== IsChangeEnvironmentIdentifierDisabled ==
No input, returns an output bool.


== SetWithoutDomainExchangeFqdns ==
== SetWithoutDomainExchangeFqdns ==
Takes a type-0x5 input buffer containing an array of a 0x100-byte struct.
Takes a type-0x5 input buffer containing an array of [[#Fqdn]].


Requires the <code>nsd!test_mode</code> setting to be equal to 1.
Requires the <code>nsd!test_mode</code> setting to be equal to 1.


The maximum number of input entries is 2.
The maximum number of input entries is 2.
== GetApplicationServerEnvironmentType ==
No input, returns an output u8 "[[Applet_Manager_services|nn::oe::ServerEnvironmentType]]".
== SetApplicationServerEnvironmentType ==
Takes an input u8 "[[Applet_Manager_services|nn::oe::ServerEnvironmentType]]", no output.
== DeleteApplicationServerEnvironmentType ==
No input/output.


= bsd:nu =
= bsd:nu =
Line 593: Line 647:
| 1 ||  
| 1 ||  
|}
|}
= Url =
This is "nn::nsd::Url". This is a 0x100-byte struct.
= SettingName =
This is "nn::nsd::SettingName". This is a 0x100-byte struct.
= EnvironmentIdentifier =
This is "nn::nsd::EnvironmentIdentifier". This a 0x8-byte struct, containing a string.
= DeviceId =
This is "nn::nsd::DeviceId". This is a 0x10-byte struct.
= Fqdn =
This is "nn::nsd::Fqdn". This is a 0x100-byte struct.
= NasServiceSetting =
This is "nn::nsd::NasServiceSetting". This is a 0x108-byte struct.
= NasServiceName =
This is "nn::nsd::NasServiceName". This is a 0x10-byte struct.
= SaveData =
This is "nn::nsd::SaveData". This is a 0x2BF0-byte struct.
= TestParameter =
This is "nn::nsd::detail::TestParameter". This is a 0x80-byte struct.


[[Category:Services]]
[[Category:Services]]