I posted this question on GameDev, the threads been going on for 20 posts or so and I still couldn't get it fixed...
It's my first time using async sockets
I'm writing a game and I'm trying to make it send a message whenever the opponent moves
I hardcoded it to send "mma" for debugging purposes and I'm recving the "mma"'s but once in a while, I get these strings of random(ish) chars within the "mma" string
the top right window is the data I'm recving
I put a putchar('\n'); after each recv call
I'm outputing the data right after I recv it so I know it's got nothing to do with not processing it properly
It seems to have something to do with the recvbuffer's size
What happens if the data received is larger than your buffer?
Does recv stop recving once it encounters a \0?
I just counted the chars, I get the D-" every 255th char and the recvbuffer is an array of 256 chars[/edit]