Legacy Documentation: Version 5.2
LanguageEnglish
  • 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 bool Send(int hostId, int connectionId, int channelId, byte[] buffer, int size, out byte error);

Parameters

hostId Id of udp socket using for send.
connectionId Id of connection.
channelId If for channel.
buffer Binary buffer containing data for sending.
size Buffer size.
error Possible error.

Description

Send data to peer.