Hey i am working on an project in which we only send minimum of 10 UDP packets to a server but the problem is that i cant use ten sendto () statements as it is quite useless if i try to make an 100 or 1000 packets per second. The problem is that i do not know how to do that.
P.s
This is an network stresser not an black hat flooder of some kind. Thanks in advance
if any one here knows how to do that please post here |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ v
assuming UDPSocket.send('☺') sends this byte of data to someone, then yeah it does flood them, though I suspect they check whats being sent, and if it doesn't look like real data it gets dropped, that's just a guess though, I don't actually know how it all works.
I don't know WinSock, sorry, the only network library I've worked with is SFML's and I couldn't get that working properly(or it doesn't work properly, there have been several issues reported that won't be fixed until some distant version)
basically, you figure out what socket the server is listening to, then send data through UDP to that socket, as for figuring out what socket, if you are doing this legally you should know what the socket is.
I wouldn't worry about timing it properly until you can actually do what I said above, you might want to make your own server or something to test it easily, just make two programs, one that listens in at port x and one that sends data to port x.