Ejemplo n.º 1
0
 //called by the thread calls HandleResponse function
 //thread safe if calling thread is the main thread
 protected override void OnEvent(byte OpCode, byte[] data)
 {
     switch (OpCode)
     {
     case 1:
         Console.WriteLine("Event 1");
         MemoryStream bytes = new MemoryStream(data);
         var          strin = StringProxy.Deserialize(bytes);
         ByteProxy.DeserializeArray(bytes);
         var omg = StringProxy.Deserialize(bytes);
         Console.WriteLine(strin);
         Console.WriteLine(omg);
         break;
     }
 }