/// <summary> /// /// </summary> /// <param name="socket"></param> public static void AddSocket(ISocketStatus socket) { if (!Sockets.Contains(socket)) { Sockets.Add(socket); } }
/// <summary> /// /// </summary> /// <param name="socket"></param> public static void RemoveSocket(ISocketStatus socket) { if (Sockets.Contains(socket)) { Sockets.Remove(socket); } }
/// <summary> /// Helper for socket list, to show types /// </summary> static string GetSocketType(ISocketStatus sock) { if (sock is GenericSshClient) { return("SSH"); } else if (sock is GenericTcpIpClient) { return("TCP-IP"); } else { return("?"); } }
public void setStatusDelegate(ISocketStatus callBack) { _statusCallBack = callBack; }
public void resetStatusDelegate() { _statusCallBack = null; }
public GenericSocketStatusChageEventArgs(ISocketStatus client) { Client = client; }