SRV:RegisterService

From 3dbrew
Revision as of 12:54, 18 September 2024 by ElementW (talk | contribs) (Convert to IPC templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Request Word Description
0
Header 0x00030100 Cmd 0x0003 Param 4 Xlat 0
1-2 8-byte UTF-8 service name
3 Name length
4 Maximum sessions

Response[edit]

Response Word Description
0
Header 0x00030042 Cmd 0x0003 Param 1 Xlat 2
1 Result code
2 Descriptor for moving 1 handle
3 Handle<KServerPort> which will receive incoming connections to the service.

This function registers a new service which can be accessed using SRV:GetServiceHandle. The service manager will create a new client-server port pair, registering the client endpoint under the given name, and returning the server endpoint for the service to listen on for incoming connections.