mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 05:04:48 +00:00
Merged in release (pull request #25)
PDC-18_AddS+ConstructorToEventArgs Approved-by: Neil Dorin <ndorin@pepperdash.com>
This commit is contained in:
@@ -23,12 +23,14 @@ namespace PepperDash.Core
|
|||||||
{
|
{
|
||||||
public ISocketStatus Client { get; private set; }
|
public ISocketStatus Client { get; private set; }
|
||||||
|
|
||||||
public GenericSocketStatusChageEventArgs() { }
|
|
||||||
|
|
||||||
public GenericSocketStatusChageEventArgs(ISocketStatus client)
|
public GenericSocketStatusChageEventArgs(ISocketStatus client)
|
||||||
{
|
{
|
||||||
Client = client;
|
Client = client;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Stupid S+ Constructor
|
||||||
|
/// </summary>
|
||||||
|
public GenericSocketStatusChageEventArgs() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public delegate void GenericTcpServerStateChangedEventDelegate(ServerState state);
|
public delegate void GenericTcpServerStateChangedEventDelegate(ServerState state);
|
||||||
@@ -36,12 +38,14 @@ namespace PepperDash.Core
|
|||||||
{
|
{
|
||||||
public ServerState State { get; private set; }
|
public ServerState State { get; private set; }
|
||||||
|
|
||||||
public GenericTcpServerStateChangedEventArgs() { }
|
|
||||||
|
|
||||||
public GenericTcpServerStateChangedEventArgs(ServerState state)
|
public GenericTcpServerStateChangedEventArgs(ServerState state)
|
||||||
{
|
{
|
||||||
State = state;
|
State = state;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Stupid S+ Constructor
|
||||||
|
/// </summary>
|
||||||
|
public GenericTcpServerStateChangedEventArgs() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public delegate void GenericTcpServerSocketStatusChangeEventDelegate(object socket, uint clientIndex, SocketStatus clientStatus);
|
public delegate void GenericTcpServerSocketStatusChangeEventDelegate(object socket, uint clientIndex, SocketStatus clientStatus);
|
||||||
@@ -51,8 +55,6 @@ namespace PepperDash.Core
|
|||||||
public uint ReceivedFromClientIndex { get; private set; }
|
public uint ReceivedFromClientIndex { get; private set; }
|
||||||
public SocketStatus ClientStatus { get; set; }
|
public SocketStatus ClientStatus { get; set; }
|
||||||
|
|
||||||
public GenericTcpServerSocketStatusChangeEventArgs() { }
|
|
||||||
|
|
||||||
public GenericTcpServerSocketStatusChangeEventArgs(object socket, SocketStatus clientStatus)
|
public GenericTcpServerSocketStatusChangeEventArgs(object socket, SocketStatus clientStatus)
|
||||||
{
|
{
|
||||||
Socket = socket;
|
Socket = socket;
|
||||||
@@ -65,6 +67,10 @@ namespace PepperDash.Core
|
|||||||
ReceivedFromClientIndex = clientIndex;
|
ReceivedFromClientIndex = clientIndex;
|
||||||
ClientStatus = clientStatus;
|
ClientStatus = clientStatus;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Stupid S+ Constructor
|
||||||
|
/// </summary>
|
||||||
|
public GenericTcpServerSocketStatusChangeEventArgs() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GenericTcpServerCommMethodReceiveTextArgs : EventArgs
|
public class GenericTcpServerCommMethodReceiveTextArgs : EventArgs
|
||||||
@@ -82,6 +88,10 @@ namespace PepperDash.Core
|
|||||||
Text = text;
|
Text = text;
|
||||||
ReceivedFromClientIndex = clientIndex;
|
ReceivedFromClientIndex = clientIndex;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Stupid S+ Constructor
|
||||||
|
/// </summary>
|
||||||
|
public GenericTcpServerCommMethodReceiveTextArgs() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GenericTcpServerClientReadyForcommunicationsEventArgs : EventArgs
|
public class GenericTcpServerClientReadyForcommunicationsEventArgs : EventArgs
|
||||||
@@ -91,6 +101,10 @@ namespace PepperDash.Core
|
|||||||
{
|
{
|
||||||
IsReady = isReady;
|
IsReady = isReady;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Stupid S+ Constructor
|
||||||
|
/// </summary>
|
||||||
|
public GenericTcpServerClientReadyForcommunicationsEventArgs() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GenericUdpConnectedEventArgs : EventArgs
|
public class GenericUdpConnectedEventArgs : EventArgs
|
||||||
@@ -109,6 +123,7 @@ namespace PepperDash.Core
|
|||||||
{
|
{
|
||||||
Connected = connected;
|
Connected = connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user