Start on Server & Client Events

Created ClientConnected event
Created DataReceived event
This commit is contained in:
2021-12-15 15:14:05 +10:00
parent fc1195c446
commit cdda6c0c8a
3 changed files with 18 additions and 2 deletions

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Articulate_Network.Attributes namespace Articulate_Network.Attributes
{ {
public class PacketIgnore : System.Attribute public class PacketIgnore : Attribute
{ {
} }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace Articulate_Network.Events namespace Articulate_Network.Events
{ {
public class ClientConnectedEventArgs public class ClientConnectedEventArgs : EventArgs
{ {
public TcpClient TcpClient { get; set; } public TcpClient TcpClient { get; set; }
} }

View File

@ -0,0 +1,16 @@
using Articulate_Network.Packets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace Articulate_Network.Events
{
public class DataReceivedEventArgs : EventArgs
{
public TcpClient Client { get; set; }
public Packet Packet { get; set; }
}
}