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?
C++ programming net applications?
Moderator: Coders of Rage
- cypher1554R
- Chaos Rift Demigod
- Posts: 1124
- Joined: Sun Jun 22, 2008 5:06 pm
- Bludklok
- 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?
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
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
- cypher1554R
- Chaos Rift Demigod
- Posts: 1124
- Joined: Sun Jun 22, 2008 5:06 pm
Re: C++ programming net applications?
Okay. That looks like enough to get me started. Thanks!
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: C++ programming net applications?
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.
- Bludklok
- 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?
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.MarauderIIC wrote:I really thought that Beej's Guide was totally awesome, personally.