NetworkConnection is a HLAPI class that encapsulates a network connection. NetworkClient objects have a NetworkConnections, and NetworkServers have multiple connections - one from each client. NetworkConnections have the ability to send byte arrays, or serialized objects as network messages.
Property: | Function: | |
---|---|---|
hostId | The NetworkTransport hostId for this connection. | |
connectionId | The NetworkTransport connectionId for this connection. | |
isReady | Flag to control whether state updates are sent to this client. | |
address | The IP address of the end-point that this connection is connected to. | |
playerControllers | The set of players that have been added with AddPlayer(). |