The description of problem:
- I have achieved a model that the client could send some command to the server and get its useful block information from the server.
- When I just ran my codes, I just got the right anser.
From the above picture, we can see that the whole process is great.
- However, When I just try to access the block in the server. I will get the wrong sign.
At first, I was just confused about that. And think maybe the mistake from the operating system.
After I just experimented with it a lot to find it is a bug needed to be fixed.
And I was lucky enough to position the bug at the server.cpp.
Finally, I just found that I did not close the ClientID at the final access. When I just add the following code, I got the correct answer.