Page 1 of 1

C++ programming net applications?

Posted: Sat Oct 03, 2009 9:32 am
by cypher1554R
So far I was making some offline applications programming in C++ and wanted to try something new, like making an application that does stuff over the net.. maybe a messenger that sends a message to other computer if you specify IP. It made sense for less then a second, cause you probably need a server and both computers need to have that same application installed and connected to the server in order to work.
I said probably, cause the more I think about it, the more I see how illiterate I am about how the internet works, how the packets get sent /received.. I'm completely clueless.

So, I wanted to ask. Does someone know any good source or book on how to get started in C++ net applications programming?

Re: C++ programming net applications?

Posted: Sat Oct 03, 2009 7:04 pm
by Bludklok
Socket programming is what your looking for, most likely.

I've recently started learning sockets and the concept isn't easy to grasp. But if you want to get started here are the sources I've used.

Lusikkamage's Winsock tutorial part 1: http://www.youtube.com/watch?v=w5MPIkveJoQ
Lusikkamage's Winsock tutorial part 2: http://www.youtube.com/watch?v=AVyKZeOZnzk

With Lusikka's videos, what I did was write the code while following the videos and once it was all written up I set up debugging lines of code everywhere so that after every process I knew what was going on and how variables were being changed and such. That was a huge help from the start.

Beej's guide to Winsock programming: http://beej.us/guide/bgnet/

Beej's guide isn't so much a help with Winsock 2 because it's a bit older but it still has a lot of useful information about packets, winsock functions, how the internet works, etc.

The last source, and probably best source, I've used so far would be The Chaos Rift IRC. I've gotten so much help with socket programming from everyone there. :D

Re: C++ programming net applications?

Posted: Sun Oct 04, 2009 2:08 pm
by cypher1554R
Okay. That looks like enough to get me started. Thanks!

Re: C++ programming net applications?

Posted: Sun Oct 04, 2009 6:50 pm
by MarauderIIC
I really thought that Beej's Guide was totally awesome, personally.

Re: C++ programming net applications?

Posted: Sun Oct 04, 2009 10:32 pm
by Bludklok
MarauderIIC wrote:I really thought that Beej's Guide was totally awesome, personally.
It is awesome, just not completely based around Winsock 2. Winsock 2 uses a lot of the same stuff as older versions (I think) so it's still a great guide.