Sign in to follow this  
thornx1

Sockets and networking in c++

Recommended Posts

thornx1    94
I am having troubles in finding tutorials on how to program using sockets and networking,

although i have some information on networking it is mostly small tidbits of information, what i am looking for is large tutorials so i can learn everything on the subject instead of getting lost without some pieces i cant find. could someone please help me find some tutorials on each subject?

I have no clue where to search i tried basic google searches like "sockets in c++" or "networking tutorial c++" and variations of them.

Share this post


Link to post
Share on other sites
Shannon Barber    1681
Loose the C++, "sockets" refers to the BSD socket API and it's in C.
Try 'socket programming tutorial'.

If you really want a C++ design, then have a look at the [url="http://www.cs.wustl.edu/~schmidt/ACE.html"]ACE programming toolkit[/url].

Share this post


Link to post
Share on other sites
Khatharr    8812
[url="http://beej.us/guide/bgnet/"]Beej[/url]

[url="http://www.gamedev.net/topic/631797-simple-socks-c-wrapper-for-winsock-22/"]A tutorial-ish library for WinSock[/url] (that I made and posted here)

Share this post


Link to post
Share on other sites
KingofNoobs    305
If you want a "complete" tutorial, I recommend the 1,500 page "Computer Networks - 5th edition, by Andrew Tanenbaum"

He has a very instructive and circumspect writing style. I don't think you'll get lost.

Share this post


Link to post
Share on other sites
I haven't done much in this domain, but when I was researching this before, I though [url="http://www.zeromq.org/"]zmq[/url] was the best option.

BTW: Sockets are old; maybe try googling for C, not C++. Edited by Splinter of Chaos

Share this post


Link to post
Share on other sites
pinebanana    479
I don't know why no one has reccomended the [url="http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio.html"]boost::asio[/url] library. Edited by pinebanana

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this