Handmade Hero»Forums»Code
64 posts
General discussion over networking

I don't know whether Casey has a plan for multiplayer or something similar to some of the zachtronics games where people put scores, or something. He probably doesn't but I got curious.

In that case, we would need to use networking.

But networking seems all over the place in C/C++. There is no basic standard, and personally I do not like the boost libs tho they have the general-purpose-multi-threading ASIO that does a lot of stuff.

How would you guys approach a networking layer for a game like HMH, IF you wanted to make a simple thing like playing with a friend in some 2-player module of the game?

In particular, this would be like building a basic "chat"-like module, right?

Where is the best place to know how to spin this in moderately simple terms? Something that would give me a suitable socket (or perhaps just having the raw socket programmed in extra sources).

Especially, if one of you guys ever worked with networking like this, what did you use? What are good references on that?

Thanks folks!

1 posts
General discussion over networking
Edited by owntempo on

You might want to take a look at the Networking Chapter in the book Hacking The Art of Exploitation. I found it way better than many other resources because it went straight into code, writing a server, and since its about hacking it explains a lot of subtle ideas and behaviours. If you like low level programming you might also enjoy other chapters.