Start on File Transfer Packets & Handler Implementation

This commit is contained in:
2021-12-15 15:18:47 +10:00
parent e5b64f600c
commit 5b6fd24af4
18 changed files with 849 additions and 17 deletions

View File

@ -0,0 +1,14 @@
using Articulate_Network.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MIT_Packets.Transfer
{
public class EndFileTransferPacket : Packet
{
public bool Completed { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using Articulate_Network.Attributes;
using Articulate_Network.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MIT_Packets.Transfer
{
public class SendFileChunkPacket : Packet
{
[PacketIgnore]
public int TransferID { get; set; }
public int ChunkSize { get; set; }
public byte[] Chunk { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using Articulate_Network.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MIT_Packets.Transfer
{
public class StartFileTransferPacket : Packet
{
public string FileName { get; set; }
public long ExpectedSize { get; set; }
}
}