Start on Server & Client Events
Created ClientConnected event Created DataReceived event
This commit is contained in:
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Articulate_Network.Attributes
|
||||
{
|
||||
public class PacketIgnore : System.Attribute
|
||||
public class PacketIgnore : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Articulate_Network.Events
|
||||
{
|
||||
public class ClientConnectedEventArgs
|
||||
public class ClientConnectedEventArgs : EventArgs
|
||||
{
|
||||
public TcpClient TcpClient { get; set; }
|
||||
}
|
||||
|
||||
16
Events/DataReceivedEventArgs.cs
Normal file
16
Events/DataReceivedEventArgs.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user