C++ programming net applications?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
cypher1554R
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1124
Joined: Sun Jun 22, 2008 5:06 pm

C++ programming net applications?

Post 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?
User avatar
Bludklok
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Tue Apr 14, 2009 1:31 am
Current Project: EnigmaCore
Favorite Gaming Platforms: PC, N64, Playstation1, Playstation2
Programming Language of Choice: C++
Location: New Jersey
Contact:

Re: C++ programming net applications?

Post 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
Youtube
Website
Current project: Enigma Core
User avatar
cypher1554R
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1124
Joined: Sun Jun 22, 2008 5:06 pm

Re: C++ programming net applications?

Post by cypher1554R »

Okay. That looks like enough to get me started. Thanks!
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: C++ programming net applications?

Post by MarauderIIC »

I really thought that Beej's Guide was totally awesome, personally.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
Bludklok
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Tue Apr 14, 2009 1:31 am
Current Project: EnigmaCore
Favorite Gaming Platforms: PC, N64, Playstation1, Playstation2
Programming Language of Choice: C++
Location: New Jersey
Contact:

Re: C++ programming net applications?

Post 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.
Youtube
Website
Current project: Enigma Core
Post Reply