/// <inheritdoc /> public void Broadcast(ref byte[] data) { foreach (TCPNetworkConnection connection in serverConnections.Values) { connection.Send(ref data); } if (clientConnection != null) { clientConnection.Send(ref data); } data = null; }
/// <inheritdoc /> public void Broadcast(byte[] data, long offset, long length) { foreach (TCPNetworkConnection connection in serverConnections.Values) { connection.Send(data, offset, length); } if (clientConnection != null) { clientConnection.Send(data, offset, length); } data = null; }