Struct NetworkConnection
Public representation of a connection. Holds all information needed by the
Network
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkConnection : IEquatable<NetworkConnection>
Properties
Name | Description |
---|---|
Internal |
Gets the value of the connection's internal ID. |
Is |
Checks to see if a connection is created. |
Methods
Name | Description |
---|---|
Close(Network |
Disconnects a connection and marks it for deletion. The connection will be removed on the next frame. Same as Disconnect<T>. |
Disconnect(Network |
Disconnects a connection and marks it for deletion. The connection will be removed on the next frame. Same as Close<T>. |
Equals(object) | Indicates whether this instance and a specified object are equal. |
Equals(Network |
Indicates whether the current object is equal to another object of the same type. |
Get |
Returns the hash code for this instance. |
Get |
Gets the state of the connection. |
Pop |
Receive an event for this specific connection. Should be called until it returns Empty, even if the connection is disconnected. |
Pop |