Mirror Networking
|
Public Member Functions | |
NetworkConnectionToClient (int networkConnectionId) | |
override void | Disconnect () |
Disconnects this connection. More... | |
![]() | |
void | Send< T > (T message, int channelId=Channels.Reliable) |
Send a NetworkMessage to this connection over the given channel. More... | |
abstract void | Disconnect () |
Disconnects this connection. More... | |
override string | ToString () |
Public Attributes | |
new readonly HashSet< NetworkIdentity > | observing = new HashSet<NetworkIdentity>() |
NetworkIdentities that this connection can see More... | |
new readonly HashSet< NetworkIdentity > | clientOwnedObjects = new HashSet<NetworkIdentity>() |
All NetworkIdentities owned by this connection. Can be main player, pets, etc. More... | |
Unbatcher | unbatcher = new Unbatcher() |
![]() | |
readonly int | connectionId |
Unique identifier for this connection that is assigned by the transport layer. More... | |
bool | isAuthenticated |
Flag that indicates the client has been authenticated. More... | |
object | authenticationData |
General purpose object to hold authentication data, character selection, tokens, etc. More... | |
bool | isReady |
A server connection is ready after joining the game world. More... | |
float | lastMessageTime |
Last time a message was received for this connection. Includes system and user messages. More... | |
Protected Member Functions | |
override void | SendToTransport (ArraySegment< byte > segment, int channelId=Channels.Reliable) |
![]() | |
Batcher | GetBatchForChannelId (int channelId) |
abstract void | SendToTransport (ArraySegment< byte > segment, int channelId=Channels.Reliable) |
Properties | |
override string | address [get] |
![]() | |
HashSet< NetworkIdentity > | observing [get] |
NetworkIdentities that this connection can see More... | |
abstract string | address [get] |
IP address of the connection. Can be useful for game master IP bans etc. More... | |
NetworkIdentity | identity [get, set] |
This connection's main object (usually the player object). More... | |
HashSet< NetworkIdentity > | clientOwnedObjects [get] |
All NetworkIdentities owned by this connection. Can be main player, pets, etc. More... | |
double | remoteTimeStamp [get, set] |
last batch's remote timestamp. not interpolated. useful for NetworkTransform etc. More... | |
Additional Inherited Members | |
![]() | |
const int | LocalConnectionId = 0 |
![]() | |
static bool | ValidatePacketSize (ArraySegment< byte > segment, int channelId) |
![]() | |
Dictionary< int, Batcher > | batches = new Dictionary<int, Batcher>() |
Definition at line 7 of file NetworkConnectionToClient.cs.
Mirror.NetworkConnectionToClient.NetworkConnectionToClient | ( | int | networkConnectionId | ) |
Definition at line 26 of file NetworkConnectionToClient.cs.
|
virtual |
Disconnects this connection.
Implements Mirror.NetworkConnection.
Definition at line 35 of file NetworkConnectionToClient.cs.
|
protectedvirtual |
Implements Mirror.NetworkConnection.
new readonly HashSet<NetworkIdentity> Mirror.NetworkConnectionToClient.clientOwnedObjects = new HashSet<NetworkIdentity>() |
All NetworkIdentities owned by this connection. Can be main player, pets, etc.
Definition at line 21 of file NetworkConnectionToClient.cs.
new readonly HashSet<NetworkIdentity> Mirror.NetworkConnectionToClient.observing = new HashSet<NetworkIdentity>() |
NetworkIdentities that this connection can see
Definition at line 14 of file NetworkConnectionToClient.cs.
Definition at line 24 of file NetworkConnectionToClient.cs.
|
get |
Definition at line 9 of file NetworkConnectionToClient.cs.