Exemplo n.º 1
0
 private static bool IsReal(Warning client)
 {
     return(client != null);// && Globals.Warnings.IndexOf(client) >= 0;
 }
Exemplo n.º 2
0
 private static void ListOnClients()
 {
     if (Globals.Clients.Count < 1)
     {
         Utils.Log.SYS("No Clients Online!");
         return;
     }
     Globals.Clients.ForEach(c => Utils.Log.SYS("IP: {0}, LastTime: {1}, User: {2}, WarningLevel: {3}, KeyLevel: {4}, PingOneWay: {5} Milli. Seconds", c.ipport, c.lastheartbeat, c.userid, Warning.GetLevel(c.warning), Warning.GetKeyErrors(c.warning), c.lastPingOneWay));
 }
Exemplo n.º 3
0
 public static DateTime GetTime(Warning client)
 {
     return(IsReal(client) ? client.Date : DateTime.MinValue);
 }
Exemplo n.º 4
0
 public static Int16 GetLevel(Warning client)
 {
     return(IsReal(client) ? client.Level : (short)0);
 }
Exemplo n.º 5
0
 public static Int16 GetKeyErrors(Warning client)
 {
     return(IsReal(client) ? client.keyerrors : (short)0);
 }
Exemplo n.º 6
0
 public void AddClientWatch(Int32 c, Warning client)
 {
     lock (_lock)
         Addresses.Add(new Pair <Int32, Warning>(c, client));
 }
Exemplo n.º 7
0
        public void UnBlock(Warning client)
        {
            Pair <Int32, Warning> obj = ObjOfWarning(client);

            UnBlock(obj);
        }