Server gets it, and now client gets it. And so on.
Why does the client miss the first one?
It’s bad, because if my players type in the correct password and username the first time, the server will say that’s right, but the client will not receive, until the player presses the button the second time.
Hi!
How exactly do you invoke this code? I think problem in that you don’t wait when data come from server, so I mean following:
When you press button in first time you send date on the server and invoke the code for receiving. But server may be ( if we take into account ping) not catch you message and not done responce, when you try receive one.
while (mySocket->HasPendingData(Size)) this code only check that the socket has any pending data on the queue and how I think the socket hasn’t pending data yet.
When you press button again socket already have data and you handled them successfully.