Quote:
Originally Posted by devicenull
Try overwriting the beginning of the string with garbage (IE, not \xFF\xFF\xFF\xFF). The server drops any packets that aren't valid, without producing errors.
AFAIK, it's gathering all the info over and over again that causes the lag, not receiving the packets.
|
That's an interesting idea. The method I'm using now (setting the timeout flag and returning SOCKET_ERROR) doesn't produce any spam (I haven't tested the debug build for spam yet).
True, but if we allow the packet through, it will gather the info to produce a reply.
__________________