Method group is Obsolete

NetworkTransport.GetOutgoingMessageCountForHost

Obsolete The UNET transport will be removed in the future as soon a replacement is ready.

Declaration

public static int GetOutgoingMessageCountForHost(int hostId, out byte error);

Parameters

hostId ID of the host.
error Error (can be cast to NetworkError for more information).

Returns

int Messages count sending from start for the host.

Description

Returns how many messages have been sent from start for host (from call Networking.NetworkTransport.AddHost).

To determine the message rate for the host, sample this value periodically and divide the difference by the intervening time period.


Did you find this page useful? Please give it a rating: