Skip to main content

Unity.Networking.Transport.NetworkEventQueue

Implements#

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 NetworkEventQueue : IDisposable

NetworkEventQueue(Int32)#

Initializes a new instance of a NetworkEventQueue.

Declaration#

public NetworkEventQueue(int queueSizePerConnection)

Parameters#

TypeNameDescription
System.Int32queueSizePerConnectionThe queue size per connection.

#

Dispose()#

Disposes of the queue.

Declaration#

public void Dispose()

GetCountForConnection(Int32)#

Get the number of events in the queue for a given connection.

Declaration#

public int GetCountForConnection(int connectionId)

Parameters#

TypeNameDescription
System.Int32connectionIdThe ID of the connection to get event count of.

Returns#

TypeDescription
System.Int32The number of events for the connection.

PopEvent(out Int32, out Int32, out Int32)#

Declaration#

public NetworkEvent.Type PopEvent(out int id, out int offset, out int size)

Parameters#

TypeNameDescription
System.Int32id
System.Int32offset
System.Int32size

Returns#

TypeDescription
NetworkEvent.Type

PopEvent(out Int32, out Int32, out Int32, out Int32)#

Declaration#

public NetworkEvent.Type PopEvent(out int id, out int offset, out int size, out int pipelineId)

Parameters#

TypeNameDescription
System.Int32id
System.Int32offset
System.Int32size
System.Int32pipelineId

Returns#

TypeDescription
NetworkEvent.Type

PopEventForConnection(Int32, out Int32, out Int32)#

Declaration#

public NetworkEvent.Type PopEventForConnection(int connectionId, out int offset, out int size)

Parameters#

TypeNameDescription
System.Int32connectionId
System.Int32offset
System.Int32size

Returns#

TypeDescription
NetworkEvent.Type

PopEventForConnection(Int32, out Int32, out Int32, out Int32)#

Declaration#

public NetworkEvent.Type PopEventForConnection(int connectionId, out int offset, out int size, out int pipelineId)

Parameters#

TypeNameDescription
System.Int32connectionId
System.Int32offset
System.Int32size
System.Int32pipelineId

Returns#

TypeDescription
NetworkEvent.Type

PushEvent(NetworkEvent)#

Declaration#

public void PushEvent(NetworkEvent ev)

Parameters#

TypeNameDescription
NetworkEventev

ToConcurrent()#

Declaration#

public NetworkEventQueue.Concurrent ToConcurrent()

Returns#

TypeDescription
NetworkEventQueue.Concurrent

Implements#

System.IDisposable