22 years, 2 months ago
Highlights
22 years, 2 months ago
I've suffered the same problem as you did.My solution was to create a new data structure called WorldContext which is different from the original map structure to save all the t…
22 years, 2 months ago
If you are using blocking mode, you can just simply do like this:struct packet{ ... // whatever you like for your packet.};char buf[MAX_BUF_LEN];int size = recv(s, buf, MAX_BUF_…
22 years, 2 months ago