2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-03 20:08:21 +00:00
Files
esiur-dotnet/Esiur/Net/SendList.cs
2026-04-03 12:58:39 +03:00

28 lines
603 B
C#

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<object[]> reply;
public SendList(NetworkConnection connection, AsyncReply<object[]> reply)
{
this.reply = reply;
this.connection = connection;
}
public override AsyncReply<object[]> Done()
{
var s = this.ToArray();
//Console.WriteLine($"Sending {s.Length} -> {DC.ToHex(s)}");
connection.Send(s);
return reply;
}
}