Пример #1
0
 private void AsyncReadSocktPosVal()
 {
     Task.Factory.StartNew(() =>
     {
         while (true)
         {
             try
             {
                 var ret      = udp.Recieve <int>();
                 var rowIndex = ret >> 16;
                 var colIndex = ret & 0xFF;
                 MessageBox.Show($"rowIndex:{rowIndex} colIndex:{colIndex}");
             }
             catch
             {
             }
         }
     });
 }