Late learning

Today was a good, if not very productive day.

Since last post I’ve learned three valuable things. First of all the location of the human spleen; right next to the stomach. But what does that have to do with programming? Nothing at all but I feel like i should have known this earlier.

The second thing i learned by studying the code i wrote from the microsoft tutorial i mentioned two blog posts ago. By pretty much staring at the code structure, looking at my notes from yesterday morning and some online searching i finally understand the parameters of the recv() function.
In the program it currently looks like this:
iResult = recv(ClientSocket, recvbuf, recvbuflen, 0);
The ClientSocket is the socket assigned to the specific client which the program recieves data from.
What i couldn’t figure out was why the recv function returned a integer instead of what it receives from the client.
I finally realized that the recvbuf is a list of characters recieved from the client.
Now that i know that, i feel like I’ve taken a big step in understanding how to make the web server.

During the afternoon lecture i also finally realized what an vertex buffer is. I can’t believe it’s taken me this long to understand. I guess i just can’t take in information properly during lecture like that. I need to find some way to remember what’s being said, perhaps i could take notes between writing down the parts of code. In any case, understanding this will hopefully make it easier to understand the rest of the 3D rendering lectures, even if there’s only a few left.