Advertisement
Morogn93

Untitled

Mar 11th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.  while (true)
  2.             {
  3.                 IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0);
  4.                 Byte[] receivedBytes = udpClient.Receive(ref RemoteIpEndPoint);
  5.                 string returnData = Encoding.ASCII.GetString(receivedBytes);
  6.                 MessageBox.Show("wiadomosc");
  7.                 lbConnections.Items.Add(RemoteIpEndPoint.Address.ToString() + ":" + returnData);
  8.                 this.Refresh();
  9.  
  10.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement