mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-04-04 12:28:21 +00:00
Layout
This commit is contained in:
27
Libraries/Esiur/Net/SendList.cs
Normal file
27
Libraries/Esiur/Net/SendList.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user