Difference between revisions of "SRV:RegisterService"

From 3dbrew
Jump to navigation Jump to search
m (Minor fix.)
(Add details about semantics of call)
 
Line 31: Line 31:
 
|-
 
|-
 
| 3
 
| 3
| Service handle
+
| Handle to [[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 [[KPort|client endpoint]] under the given name, and returning the [[KServerPort|server endpoint]] for the service to listen on for incoming connections.

Latest revision as of 07:59, 5 June 2017

Request[edit]

Index Word Description
0 Header code [0x00030100]
1-2 8-byte UTF-8 service name
3 Name length
4 Maximum sessions

Response[edit]

Index Word Description
0 Header code
1 Result code
3 Handle to 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.