Skip to main content

Unity.Networking.Transport.NetworkConnection

Inherited Members#

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct NetworkConnection

InternalId#

Gets the value of the connection's internal ID.

Declaration#

public readonly int InternalId { get; }

Property Value#

TypeDescription
System.Int32

IsCreated#

Declaration#

public readonly bool IsCreated { get; }

Property Value#

TypeDescription
System.Boolean

#

Close(NetworkDriver)#

Declaration#

public int Close(NetworkDriver driver)

Parameters#

TypeNameDescription
NetworkDriverdriver

Returns#

TypeDescription
System.Int32

Disconnect(NetworkDriver)#

Declaration#

public int Disconnect(NetworkDriver driver)

Parameters#

TypeNameDescription
NetworkDriverdriver

Returns#

TypeDescription
System.Int32

Equals(Object)#

Declaration#

public override bool Equals(object o)

Parameters#

TypeNameDescription
System.Objecto

Returns#

TypeDescription
System.Boolean

Overrides#

System.ValueType.Equals(System.Object)

Equals(NetworkConnection)#

Declaration#

public bool Equals(NetworkConnection o)

Parameters#

TypeNameDescription
NetworkConnectiono

Returns#

TypeDescription
System.Boolean

GetHashCode()#

Declaration#

public override int GetHashCode()

Returns#

TypeDescription
System.Int32

Overrides#

System.ValueType.GetHashCode()

GetState(NetworkDriver)#

Declaration#

public NetworkConnection.State GetState(NetworkDriver driver)

Parameters#

TypeNameDescription
NetworkDriverdriver

Returns#

TypeDescription
NetworkConnection.State

PopEvent(NetworkDriver, out DataStreamReader)#

Declaration#

public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream)

Parameters#

TypeNameDescription
NetworkDriverdriver
DataStreamReaderstream

Returns#

TypeDescription
NetworkEvent.Type

PopEvent(NetworkDriver, out DataStreamReader, out NetworkPipeline)#

Declaration#

public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream, out NetworkPipeline pipeline)

Parameters#

TypeNameDescription
NetworkDriverdriver
DataStreamReaderstream
NetworkPipelinepipeline

Returns#

TypeDescription
NetworkEvent.Type

#

Equality(NetworkConnection, NetworkConnection)#

Declaration#

public static bool operator ==(NetworkConnection lhs, NetworkConnection rhs)

Parameters#

TypeNameDescription
NetworkConnectionlhs
NetworkConnectionrhs

Returns#

TypeDescription
System.Boolean

Inequality(NetworkConnection, NetworkConnection)#

Declaration#

public static bool operator !=(NetworkConnection lhs, NetworkConnection rhs)

Parameters#

TypeNameDescription
NetworkConnectionlhs
NetworkConnectionrhs

Returns#

TypeDescription
System.Boolean