Language: English
  • C#
  • JS

Script language

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

NetworkTransport.Send

Switch to Manual
public static function Send(hostId: int, connectionId: int, channelId: int, buffer: byte[], size: int, out error: byte): bool;

Parameters

hostIdId of udp socket using for send.
connectionIdId of connection.
channelIdIf for channel.
bufferBinary buffer containing data for sending.
sizeBuffer size.
errorPossible error.

Description

Send data to peer.