using Esiur.Core; using Esiur.Data; using System; using System.Collections.Generic; using System.Text; namespace Esiur.Net; public class SendList : BinaryList { NetworkConnection connection; AsyncReply reply; public SendList(NetworkConnection connection, AsyncReply reply) { this.reply = reply; this.connection = connection; } public override AsyncReply Done() { var s = this.ToArray(); //Console.WriteLine($"Sending {s.Length} -> {DC.ToHex(s)}"); connection.Send(s); return reply; } }