LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkTransport.GetAckBufferCount

public static int GetAckBufferCount(int hostId, int connectionId, out byte error);

Parameters

hostIdHost ID associated with this connection.
connectionIdID of the connection.
errorError (can be cast to NetworkError for more information).

Returns

int Size of ack buffer.

Description

Returns size of reliable buffer.

If occupied size == 32 (def) or 64 (if isAckLong == true) no new reliable message can be sent.