This sends an array of bytes on the connection.
public virtual bool SendBytes(byte[] bytes, int numBytes, int channelId) { if (this.logNetworkMessages) { this.LogSend(bytes); } return (this.CheckChannel(channelId) && this.m_Channels[channelId].SendBytes(bytes, numBytes)); }
public void SendBytesTo(int connectionId, byte[] bytes, int numBytes, int channelId) { NetworkConnection networkConnection = this.FindConnection(connectionId); if (networkConnection != null) { networkConnection.SendBytes(bytes, numBytes, channelId); } }