LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-09-2004, 02:40 PM   #1
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 166

Rep: Reputation: 30
(C++) Unix/Linux Networking Socket tutorials ?


I bought some books (and find my wallet exhausted might I say) so I can't afford another book that focuses on Linux as opposed to the neutral books that goes all windows when the networking chapter opens up (how could I know, I am/was a newb!)

Regardless, I've read a bit and think I have a (somewhat) working understanding of the c++ basics, and I really would like to dive into the socket programming now.. So is there any (non after-college paper) on this ?

I ran into very few papers, and they were study material for network & communications educations ( i believe). And for a 16 year old, that's a bit much.

I *really* hope someone would point me in the right direction, thanks a whole bunch in advance! (And I'd rather not run over the winsock.h tutorials in my book cause I have no intentions of developing software for windows (at least yet!))
 
Old 08-09-2004, 02:53 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
A short search and I have 2 examples. One in C, second in C++. I'd say it's better to start from the first one (just easier to understand, C++ one has too many classes to make the process clear). So there are the links: http://www.coding-zone.co.uk/cpp/art...gramming.shtml and http://www.linuxgazette.com/issue74/tougher.html
 
Old 08-09-2004, 03:16 PM   #3
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 166

Original Poster
Rep: Reputation: 30
I ran over the top one once. Although it makes me wonder:
Can I really use this C code and compile it as cpp ? or will libraries, calls etc be different ?
 
Old 08-09-2004, 03:22 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
You can, no problem. A correct piece of C code is also a correct piece of C++ code.
 
Old 08-09-2004, 03:26 PM   #5
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 166

Original Poster
Rep: Reputation: 30
Just brilliant That's why I skipped that site in the first place, thanks
 
Old 08-09-2004, 04:28 PM   #6
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
this is the definitive tutorial:
http://www.ecst.csuchico.edu/~beej/guide/net/
 
Old 08-09-2004, 04:58 PM   #7
max_sipos
Member
 
Registered: Jul 2004
Posts: 96

Rep: Reputation: 15
book @ http://www.advancedlinuxprogramming.com/

has a chapter dealing with interprocess communication (including sockets for communication over network). there is also a chapter where they implement a full-fledged example application (some sort of a mini web-server serving pages that show system info).

Hope that helps,

---
Maksim Sipos
 
Old 08-09-2004, 05:43 PM   #8
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Note that the book mentioned by max_sipos is freely downloadable entirely (each chapter as one PDF) from the site.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help, Linux mysql nfs : Bind on unix socket: Function not implemented nmotte Linux - Newbie 1 10-29-2005 12:52 PM
Please Help, Linux mysql nfs : Bind on unix socket: Function not implemented nmotte Linux - Networking 1 10-29-2005 07:58 AM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
Free UNIX/Linux/OS X Networking Utility??? cmf5150 Linux - Networking 2 01-05-2004 02:22 PM
unix tutorials saiz66 Slackware 6 05-01-2003 07:27 PM


All times are GMT -5. The time now is 09:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration