Skip to main content

Unity.Networking.Transport.WebSocketNetworkInterface

Implements#

INetworkInterface

System.IDisposable

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct WebSocketNetworkInterface : INetworkInterface, IDisposable

IsCreated#

Declaration#

public readonly bool IsCreated { get; }

Property Value#

TypeDescription
System.Boolean

LocalEndPoint#

Returns the local endpoint.

Declaration#

public readonly NetworkInterfaceEndPoint LocalEndPoint { get; }

Property Value#

TypeDescription
NetworkInterfaceEndPointNetworkInterfaceEndPoint

#

Bind(NetworkInterfaceEndPoint)#

Binds the BaselibNetworkInterface to the endpoint passed.

Declaration#

public int Bind(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpointA valid ipv4 or ipv6 address

Returns#

TypeDescription
System.Int32int

CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)#

Creates a interface endpoint.

Declaration#

public int CreateInterfaceEndPoint(NetworkEndPoint address, out NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkEndPointaddress
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
System.Int32NetworkInterfaceEndPoint

CreateSendInterface()#

Declaration#

public NetworkSendInterface CreateSendInterface()

Returns#

TypeDescription
NetworkSendInterface

Dispose()#

Declaration#

public void Dispose()

GetGenericEndPoint(NetworkInterfaceEndPoint)#

Declaration#

public NetworkEndPoint GetGenericEndPoint(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
NetworkEndPoint

Initialize(NetworkSettings)#

Initializes a instance of the BaselibNetworkInterface struct.

Declaration#

public int Initialize(NetworkSettings settings)

Parameters#

TypeNameDescription
NetworkSettingssettings

Returns#

TypeDescription
System.Int32

Listen()#

Declaration#

public int Listen()

Returns#

TypeDescription
System.Int32

ScheduleReceive(NetworkPacketReceiver, JobHandle)#

Declaration#

public JobHandle ScheduleReceive(NetworkPacketReceiver receiver, JobHandle dep)

Parameters#

TypeNameDescription
NetworkPacketReceiverreceiver
JobHandledep

Returns#

TypeDescription
JobHandle

ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle)#

Declaration#

public JobHandle ScheduleSend(NativeQueue<QueuedSendMessage> sendQueue, JobHandle dep)

Parameters#

TypeNameDescription
NativeQueue\<QueuedSendMessage>sendQueue
JobHandledep

Returns#

TypeDescription
JobHandle

Implements#

INetworkInterface

System.IDisposable