/// <summary>
 /// Data coming in from the TCPIP server
 /// </summary>
 private void OnDataReceive(byte[] message, int messageSize)
 {
     if (AppIsExiting)
     {
         return;
     }
     //Console.WriteLine($"Raw Data From: Host Server, Size of Packet: {messageSize}");
     HostServerRawPackets.AddToList(message, messageSize);
     if (autoEventHostServer != null)
     {
         autoEventHostServer.Set(); //Fire in the hole
     }
 }
Example #2
0
        private void OnDataReceive(byte[] message, int messageSize)
        {
            if (AppIsExiting)
            {
                return;
            }

            HostServerRawPackets.AddToList(message, messageSize);
            if (autoEventHostServer != null)
            {
                autoEventHostServer.Set();
            }
        }