Guest User

Untitled

a guest
Apr 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1.     public static bool Shutdown = false;
  2.         public static List<string> temppacket;
  3.         public static string[] packetstoprocess;
  4.         public void PacketHandlerStart()
  5.         {
  6.  
  7.         }
  8.         public static void AddPacket(string PacketToAdd)
  9.         {
  10.             temppacket.Add(PacketToAdd);
  11.             packetstoprocess = temppacket.ToArray();
  12.         }
  13.         public static void PacketHandling()
  14.         {
  15.             while (Shutdown == false)
  16.             {
  17.                 try
  18.                 {
  19.                     string packet;
  20.                     packet = packetstoprocess[1];
  21.                     Console.WriteLine(packet);
  22.                 }
  23.                 catch { }
  24.             }
  25.         }
Add Comment
Please, Sign In to add comment