Get SpatialOS

Sites

Menu

DefaultMobileWorkerConnector Class

Namespace: Improbable.Gdk.Mobile
GDK package: Mobile
Source

Inheritance

Improbable.Gdk.Core.WorkerConnector


Methods

InitializeClient Source
void InitializeClient()

GetHostIp Source
string GetHostIp()

Extracts the Ip address that should be used to connect via the receptionist. The order is as follows:

Returns:
Returns the Host IP.


Overrides

GetConnectionService Source
override ConnectionService GetConnectionService()

Determines which ConnectionService to use to connect to the SpatialOS Runtime.

Returns:
A ConnectionService object describing which connection servce to use.
GetConnectionParameters Source
override ConnectionParameters GetConnectionParameters(string workerType, ConnectionService service)

Retrieves the ConnectionParameters needed to be able to connect to any connection service.

Returns:
A ConnectionParameters object.

Parameters
  • string workerType : The type of worker you want to connect.
  • ConnectionService service : The connection service used to connect.
GetReceptionistConfig Source
override ReceptionistConfig GetReceptionistConfig(string workerType)

Retrieves the configuration needed to connect via the Receptionist service.

Returns:
A ReceptionistConfig object.

Parameters
  • string workerType : The type of worker you want to connect.
GetLocatorConfig Source
override LocatorConfig GetLocatorConfig()

Retrieves the configuration needed to connect via the Locator service.

Returns:
A LocatorConfig object.
GetAlphaLocatorConfig Source
override AlphaLocatorConfig GetAlphaLocatorConfig(string workerType)

Retrieves the configuration needed to connect via the Alpha Locator service.

Returns:
A AlphaLocatorConfig object.

Parameters
  • string workerType :

Notes:
  • This connection service is still in Alpha and does not provide an integration with Steam.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums