public void SendTorrentListUpdate(Torrent[] torList, NetConnection target) { if (Peer.Connections.Count > 0) { NetOutgoingMessage newTorrentList = Peer.CreateMessage(); byte[] torBytes = TorrentSerializer.Serialize(torList); newTorrentList.Write((byte)MessageType.UpdateTorrentList); newTorrentList.Write(torBytes); Peer.SendMessage(newTorrentList, target, NetDeliveryMethod.ReliableOrdered, 0); } }