Exemple #1
0
 private void HandleKeepAlive(PacketType type, byte[] buffer)
 {
     if (type == PacketType.ISP_TINY)
     {
         IS_TINY tiny = new IS_TINY(buffer);
         if (tiny.SubT == TinyType.TINY_NONE)
         {
             TcpSocket.Send(buffer);
         }
     }
 }
Exemple #2
0
 private void OnTinyReceived(InSim insim, IS_TINY TINY)
 {
     if (TINY.SubT == TinyType.TINY_AXC)
     {
         try
         {
             if (Layoutname != "None")
             {
                 insim.Send("Layout ^1" + Layoutname + " ^3cleared");
             }
             Layoutname = "None";
         }
         catch (Exception EX) { LogTextToFile("packetError", "AXC - " + EX.Message); }
     }
 }