Facebook
From Burly Dolphin, 6 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 220
  1. }
  2.     public static void CallToChildThread(int port,ref string h)
  3.     {
  4. ;
  5.         byte[] data = new byte[3];
  6.  
  7.         IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), port);
  8.         UdpClient newsock = new UdpClient(ipep);
  9.         IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 0);
  10.         byte[] bytes = new byte[3];  
  11.         data = ReceivePacket(ref newsock, ref sender, ref h);
  12.      }
  13.         Thread thread2 = new Thread(() => CallToChildThread(9050,ref h1));
  14.     Thread thread3 = new Thread(() => CallToChildThread(9051,ref h2));