Version: 2019.4
LanguageEnglish
  • C#
Method group is Obsolete

NetworkTransport.NotifyWhenConnectionReadyForSend

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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

Declaration

public static bool NotifyWhenConnectionReadyForSend(int hostId, int connectionId, int notificationLevel, out byte error);

Parameters

hostId Host ID.
connectionId Connection ID.
notificationLevel Defines how many free slots in the incoming queue should be available before [GlobalConfig.ConnectionReadyForSend] callback is triggered.
error Error code.

Returns

bool Result, if false error will show error code.

Description

This method allows you to specify that notifications callbacks should be called when Unity's networking can send more messages than defined in notificationLevel.

Should be called every time when you want to be notified in this event.