AddHost | Creates a host based on HostTopology. |
AddHostWithSimulator | Create a host and configure them to simulate Internet latency (works on Editor and development build only). |
AddWebsocketHost | Created web socket host. |
Connect | Tries to establish a connection to another peer. |
ConnectAsNetworkHost | Create dedicated connection to Relay server. |
ConnectEndPoint | Try to establish connection to other peer, where the peer is specified using a C# System.EndPoint. |
ConnectToNetworkPeer | Create a connection to another peer in the Relay group. |
ConnectWithSimulator | Connect with simulated latency. |
Disconnect | Send a disconnect signal to the connected peer and close the connection. Poll NetworkTransport.Receive() to be notified that the connection is closed. This signal is only sent once (best effort delivery). If this packet is dropped for some reason, the peer closes the connection by timeout. |
DisconnectNetworkHost | This will disconnect the host and disband the group.
DisconnectNetworkHost can only be called by the group owner on the relay server. |
FinishSendMulticast | Finalizes sending of a message to a group of connections. Only one multicast message at a time is allowed per host. |
GetAssetId | The Unity Multiplayer spawning system uses assetIds to identify what remote objects to spawn. This function allows you to get the assetId for the prefab associated with an object. |
GetBroadcastConnectionInfo | After NetworkTransport.Receive() returns NetworkEventType.BroadcastEvent, this function will return the connection information of the broadcast sender. This information can then be used for connecting to the broadcast sender. |
GetBroadcastConnectionMessage | After NetworkTransport.Receive() returns NetworkEventType.BroadcastEvent, this function returns a complimentary message from the broadcast sender. |
GetConnectionInfo | Returns the connection parameters for the specified connectionId. These parameters can be sent to other users to establish a direct connection to this peer. If this peer is connected to the host via Relay, the Relay-related parameters are set. |
GetCurrentIncomingMessageAmount | Returns the number of unread messages in the read-queue. |
GetCurrentOutgoingMessageAmount | Returns the total number of messages still in the write-queue. |
GetCurrentRtt | Return the round trip time for the given connectionId. |
GetNetIOTimeuS | Function returns time spent on network I/O operations in microseconds. |
GetNetworkLostPacketNum | Return the total number of packets that has been lost. |
GetNetworkTimestamp | Get a network timestamp. Can be used in your messages to investigate network delays together with Networking.GetRemoteDelayTimeMS. |
GetPacketReceivedRate | Return the current receive rate in bytes per second. |
GetPacketSentRate | Return the current send rate in bytes per second. |
GetRemoteDelayTimeMS | Returns the delay for the timestamp received. |
Init | Initializes the NetworkTransport. Should be called before any other operations on the NetworkTransport are done. |
IsBroadcastDiscoveryRunning | Check if the broadcast discovery sender is running. |
Receive | Called to poll the underlying system for events. |
ReceiveFromHost | Similar to NetworkTransport.Receive but will only poll for the provided hostId. |
ReceiveRelayEventFromHost | Polls the host for the following events: NetworkEventType.ConnectEvent and NetworkEventType.DisconnectEvent.
Can only be called by the relay group owner. |
RemoveHost | Closes the opened socket, and closes all connections belonging to that socket. |
Send | Send data to peer. |
SendMulticast | Add a connection for the multicast send. |
SetBroadcastCredentials | Sets the credentials required for receiving broadcast messages. Should any credentials of a received broadcast message not match, the broadcast discovery message is dropped. |
SetPacketStat | Used to inform the profiler of network packet statistics. |
Shutdown | Shut down the NetworkTransport. |
StartBroadcastDiscovery | Starts sending a broadcasting message in all local subnets. |
StartSendMulticast | Start to multicast send. |
StopBroadcastDiscovery | Stop sending the broadcast discovery message. |