Subscribe
Results 1 to 3 of 3
- 12 Feb. 2011 12:46pm #1
[C#] Video tut - Making a UDP Flooder. Very in depth.
Shh, I'm watching My little pony.
- 12 Feb. 2011 01:09pm #2
As long as you know why this actually works, nice work.
The reason of doing UDP over TCP (which can send larger packets) is that TCP requires the server to respond. It DOES care WHERE the packets are going. TCP is a connection. It cares about loosing packets. It will resend lost packets While UDP will just through packets all over the place and doesnt care if you loose all the packets, or if you receive all the packets..
EDIT:: Adding a sleep to large loops is VERY important. Otherwise your program will start to out run your processor and you will max out your processor. Its a good practice to put a sleep of 1-10 ms in any loop over 10.
Also, you can put that loop in its own thread like my code below:
Code:new System.Threading.Thread(() => { // Code Here }).Start();
EDIT2::
Forgot to mention, the reason you have to add the - 1 at the length is because the actual array has a value set to 0, where the .Length value starts at 1. So you have to account for it being 1 number larger.
- 12 Feb. 2011 02:24pm #3
Thanks matt
I knew most of this, but not exactly why. And now I know!Shh, I'm watching My little pony.