初始化版本
This commit is contained in:
23
tongxin/NetWorkHelper/UDP/Event/ReceiveDataEvent.cs
Normal file
23
tongxin/NetWorkHelper/UDP/Event/ReceiveDataEvent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace NetWorkHelper
|
||||
{
|
||||
public delegate void ReceiveDataEventHandler(object sender, ReceiveDataEventArgs e);
|
||||
|
||||
public class ReceiveDataEventArgs : EventArgs
|
||||
{
|
||||
public ReceiveDataEventArgs() { }
|
||||
|
||||
public ReceiveDataEventArgs(byte[] buffer, IPEndPoint remoteIP)
|
||||
: base()
|
||||
{
|
||||
Buffer = buffer;
|
||||
RemoteIP = remoteIP;
|
||||
}
|
||||
|
||||
public byte[] Buffer { get; set; }
|
||||
|
||||
public IPEndPoint RemoteIP { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user