Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

NetworkConnection.SendBytes

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

public bool SendBytes(byte[] bytes, int numBytes, int channelId);

Parameters

bytesThe array of data to be sent.
numBytesThe number of bytes in the array to be sent.
channelIdThe transport channel to send on.

Returns

bool Success if data was sent.

Description

This sends an array of bytes on the connection.

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