mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +00:00
Moving TcpReceiveEventArgs to networking project
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ICD.Common.Utils.EventArguments
|
||||
{
|
||||
public sealed class TcpReceiveEventArgs : EventArgs
|
||||
{
|
||||
private readonly uint m_ClientId;
|
||||
private readonly string m_Data;
|
||||
|
||||
public uint ClientId { get { return m_ClientId; } }
|
||||
|
||||
public string Data { get { return m_Data; } }
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
/// <param name="clientId"></param>
|
||||
/// <param name="data"></param>
|
||||
public TcpReceiveEventArgs(uint clientId, IEnumerable<byte> data)
|
||||
{
|
||||
if (data == null)
|
||||
throw new ArgumentNullException("data");
|
||||
|
||||
m_ClientId = clientId;
|
||||
m_Data = StringUtils.ToString(data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
/// <param name="clientId"></param>
|
||||
/// <param name="data"></param>
|
||||
/// <param name="length"></param>
|
||||
public TcpReceiveEventArgs(uint clientId, IEnumerable<byte> data, int length)
|
||||
{
|
||||
if (data == null)
|
||||
throw new ArgumentNullException("data");
|
||||
|
||||
m_ClientId = clientId;
|
||||
m_Data = StringUtils.ToString(data, length);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,6 @@
|
||||
<Compile Include="EventArguments\GenericEventArgs.cs" />
|
||||
<Compile Include="EventArguments\IntEventArgs.cs" />
|
||||
<Compile Include="EventArguments\StringEventArgs.cs" />
|
||||
<Compile Include="EventArguments\TcpReceiveEventArgs.cs" />
|
||||
<Compile Include="EventArguments\UShortEventArgs.cs" />
|
||||
<Compile Include="EventArguments\XmlRecursionEventArgs.cs" />
|
||||
<None Include="ObfuscationSettings.cs" />
|
||||
|
||||
Reference in New Issue
Block a user