FRDU:RequestServiceLocator: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
TimmSkiller (talk | contribs)
No edit summary
TimmSkiller (talk | contribs)
No edit summary
 
Line 3: Line 3:
{{IPC/RequestHeader|0x002A|8|4}}
{{IPC/RequestHeader|0x002A|8|4}}
{{IPC/RequestEntry|NEX Server ID}}
{{IPC/RequestEntry|NEX Server ID}}
{{IPC/RequestEntryRange|3|UTF-16 <code>keyhash</code> value for NASC requests, see [[Online_Play|Online Play]]}}
{{IPC/RequestEntryRange|3|ASCII <code>keyhash</code> value for NASC requests, see [[Online_Play|Online Play]]}}
{{IPC/RequestEntryRange|2|UTF-16 <code>svc</code> value for NASC requests, see [[Online_Play|Online Play]]}}
{{IPC/RequestEntryRange|2|ASCII <code>svc</code> value for NASC requests, see [[Online_Play|Online Play]]}}
{{IPC/RequestEntry|u8, Major SDK version}}
{{IPC/RequestEntry|u8, Major SDK version}}
{{IPC/RequestEntry|u8, Minor SDK version}}
{{IPC/RequestEntry|u8, Minor SDK version}}

Latest revision as of 17:09, 6 March 2025

Request

Index Word Description
0
Header 0x002A0204 Cmd 0x002A Param 8 Xlat 4
1 NEX Server ID
2-4 ASCII keyhash value for NASC requests, see Online Play
5-6 ASCII svc value for NASC requests, see Online Play
7 u8, Major SDK version
8 u8, Minor SDK version
9 Descriptor for process ID
10 Placeholder for process ID
11 Descriptor for copying 1 handle
12 Completion handle

Response

Index Word Description
0
Header 0x002A0040 Cmd 0x002A Param 1 Xlat 0
1 Result code

Description

Requests service locator data for game servers.

To request service locator data, the friends module sends a NASC SVCLOC-type HTTP request using the given information (see Online Play for more details).

Once the completion handle has been signaled, the client can use FRDU:GetServiceLocatorData to retrieve the data received from the server.