mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-15 12:44:48 +00:00
Adding status enum to Clients; Added interface for these statuses
This commit is contained in:
@@ -10,7 +10,7 @@ namespace PepperDash.Core
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class GenericSshClient : Device, IBasicCommunication, IAutoReconnect
|
||||
public class GenericSshClient : Device, ISocketStatus, IAutoReconnect
|
||||
{
|
||||
/// <summary>
|
||||
/// Event that fires when data is received. Delivers args with byte array
|
||||
@@ -27,6 +27,10 @@ namespace PepperDash.Core
|
||||
/// </summary>
|
||||
public event EventHandler<SshConnectionChangeEventArgs> ConnectionChange;
|
||||
|
||||
|
||||
public event Crestron.SimplSharp.CrestronSockets.TCPClientSocketStatusChangeEventHandler SocketStatusChange;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Address of server
|
||||
/// </summary>
|
||||
@@ -55,6 +59,15 @@ namespace PepperDash.Core
|
||||
// returns false if no client or not connected
|
||||
get { return UStatus == 2; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Crestron.SimplSharp.CrestronSockets.SocketStatus ClientStatus
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Contains the familiar Simpl analog status values. This drives the ConnectionChange event
|
||||
/// and IsConnected with be true when this == 2.
|
||||
|
||||
Reference in New Issue
Block a user