Struct NetworkConnection
Public representation of a connection. This is obtained by calling
Accept() (on servers) or Connect(Network
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkConnection : IEquatable<NetworkConnection>
Properties
Name | Description |
---|---|
Is |
Whether the connection was correctly obtained from a call to
Accept() or Connect(Network |
Methods
Name | Description |
---|---|
Close(Network |
Close an active connection. Strictly identical to Disconnect(Network |
Disconnect(Network |
Close an active connection. Strictly identical to Close(Network |
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 |
Get the current state of a connection. |
Pop |
Pop the next available event on the connection. |
Pop |
Pop the next available event on the connection. |
To |
Return a fixed string representation of the connection. For use in contexts where
To |
To |
Returns the fully qualified type name of this instance. |