示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="socket"></param>
 public static void AddSocket(ISocketStatus socket)
 {
     if (!Sockets.Contains(socket))
     {
         Sockets.Add(socket);
     }
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="socket"></param>
 public static void RemoveSocket(ISocketStatus socket)
 {
     if (Sockets.Contains(socket))
     {
         Sockets.Remove(socket);
     }
 }
示例#3
0
 /// <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;
 }
示例#6
0
 public GenericSocketStatusChageEventArgs(ISocketStatus client)
 {
     Client = client;
 }