Hello all,
I have some trouble with winsock, when trying to send data. When my socket just recieved data it works well, but when the bot has been inactive for some time, it reads data, it replies (as cout in console), but no data is recieved. Sometimes also, when they are a lot of data, the code skips one data to send, but it is more unusual that the codes does that.
My simple code to send data is:
send(mySocket, e, (int) strlen(e), 0);
With e being char e[512], using sprintf to define e. mySocket is an integer which is the socket IP.
Thanks to anyone who can help me.
**EDIT: Solved.