Class CommunicationLayer

Base class that communication layers need to implement.

The communication layer is what is responsible for providing what Client and Host to use.

Inheritance
CommunicationLayer
Namespace: VoltstroStudios.UnityWebBrowser.Communication
Assembly: .dll
Syntax
public abstract class CommunicationLayer : ScriptableObject

Fields

| Edit this page View Source

connectionTimeout

Timeout time for connection

Declaration
public int connectionTimeout
Field Value
TypeDescription
int

Methods

| Edit this page View Source

CreateClient()

Called when the Client needs to be created

Declaration
public abstract Client CreateClient()
Returns
TypeDescription
Client
| Edit this page View Source

CreateHost()

Called when the Host needs to be created

Declaration
public abstract Host CreateHost()
Returns
TypeDescription
Host
| Edit this page View Source

GetIpcSettings(out object, out object, out string)

Gets all settings needed for the IPC

Declaration
public abstract void GetIpcSettings(out object outLocation, out object inLocation, out string assemblyLocation)
Parameters
TypeNameDescription
objectoutLocation

The "location" (whether that be a pipe name or port) that will allow communication from the "outside" (The engine.)

objectinLocation

The "location" (whether that be a pipe name or port) that will allow the client to communication to the engine.

stringassemblyLocation

The location of the assembly that the engine needs to load.

To provide the location of an assembly Location can be used.

This can be null to say that no additional assembly is needed.