Well, I didn't want to push this back to the last minute, but too much stuff came up at once for me to get the Multiplayer Programming out of the way early. I started out by trying to abide by the message that was send out by one of the students saying that one of the commands used in the demo was depreciated and to use another one. I started out by trying to get that to work, but then it proved to be too difficult for the little amount of time I had left.
I started out by using the the Blocking Demo that was used in class as a base. I then started by serializing and sending the data through an array of ints. The server then received them, deserialized them, and put them into an array, which it then sorted. I then sent back the sorted list and the client received them, deserialized them again, then pushed them back into the node list.
I also ran into the problem of my server outputing garbage values because the buffer it was using to write the messages from was filled with garbage. I fixed this by memset-ing everything in the buffers to 0 when I started, and it ended up being fine.
No comments:
Post a Comment