Class TCPCommunicationLayer

In-Built TCP layer that uses VoltRpc's TCPClient and TCPHost

Inheritance
TCPCommunicationLayer
Namespace: VoltstroStudios.UnityWebBrowser.Communication
Assembly: .dll
Syntax
public sealed class TCPCommunicationLayer : CommunicationLayer

Fields

| Edit this page View Source

inPort

The in port to communicate on

Declaration
public int inPort
Field Value
TypeDescription
int
| Edit this page View Source

outPort

The out port to communicate on

Declaration
public int outPort
Field Value
TypeDescription
int

Methods

| Edit this page View Source

CreateClient()

Called when the Client needs to be created

Declaration
public override Client CreateClient()
Returns
TypeDescription
Client
Overrides
CommunicationLayer.CreateClient()
| Edit this page View Source

CreateHost()

Called when the Host needs to be created

Declaration
public override Host CreateHost()
Returns
TypeDescription
Host
Overrides
CommunicationLayer.CreateHost()
| Edit this page View Source

GetIpcSettings(out object, out object, out string)

Gets all settings needed for the IPC

Declaration
public override 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.

Overrides
CommunicationLayer.GetIpcSettings(out object, out object, out string)