internal void Rect(Socket udp) { DataHandle Hand = new DataHandle(); Thread thread = new Thread(new ThreadStart(() => { byte[] data = new byte[20480]; cepb = new IPEndPoint(IPAddress.Any, 0); int size = udp.ReceiveFrom(data, ref cepb); Thread threada = new Thread(new ThreadStart(() => { Coming c = Hand.HaCo(data, size, udp, cepb); Protocol protocol = new Protocol(c); })); threada.Start(); Rect(udp); })); thread.Start(); }
private void Reca(Socket udpa) { DataHandle Hand = new DataHandle(); Protocol prot = new Protocol(); Thread thread = new Thread(new ThreadStart(() => { byte[] data = new byte[20480]; cepa = new IPEndPoint(IPAddress.Any, 0); int size = udpa.ReceiveFrom(data, ref cepa); ("L1002").p2pDEBUG(); //TODO : L1002 Thread threada = new Thread(new ThreadStart(() => { Coming comi = Hand.HaCo(data, size ,udpa ,cepa); prot.ComingData(comi); })); threada.Start(); Reca(udpa); })); thread.Start(); }