GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Jun-2005, 21:08
Pr0fess0r Pr0fess0r is offline
New Member
 
Join Date: Jun 2005
Posts: 5
Pr0fess0r is on a distinguished road

Network Programming (where to start)


Well, I've just started C programming a couple weeks ago, but im a fast learner. I've read though a couple of good tutorials, and am starting to get a feel for the language. However, I would like to start researching into how to communicate between two programs running over a network, or the internet. The idea is to have the same program running on both computers, and being able to communicate with eachother. So where is the best place to start for someone who has never done programming over a network before, but has a firm grasp on the concepts behind it. I've looked into socket programming, but my compiler didn't have some header files, and I thought that I would come here and see if I'm even venturing down the right path. Any tutorials are very much appreciated, keep in mind I haven't done this sort of thing before
  #2  
Old 29-Jun-2005, 21:22
nkhambal nkhambal is offline
Regular Member
 
Join Date: Jul 2004
Location: CA USA
Posts: 313
nkhambal is a jewel in the roughnkhambal is a jewel in the rough
You need to learn socket programming to write programs that communicate over network. But whats more important is to learn about protocols such as TCP,UDP and IP and some other protocols such as ICMP (used by ping utility).
Make sure you understand the functionality and behaviour of each protocol before you actually start writing programs that use these protocols.

Following is the link for one good begineers tutorial on Network programming on Unix Platform

http://www.ecst.csuchico.edu/~beej/guide/net/html/

For windows, most of the concepts and APIs are same but you need to learn about Winsock programming. Here is the link to one such tutorial and FAQs for new programmers.

http://tangentsoft.net/wskfaq/

There is one wonderful and must have book for all network programmers by Richard Stevens by name Unix Network programming Volume I.

Good luck.
  #3  
Old 30-Jun-2005, 12:25
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by Pr0fess0r
Well, I've just started C programming a couple weeks ago, but im a fast learner. I've read though a couple of good tutorials, and am starting to get a feel for the language. However, I would like to start researching into how to communicate between two programs running over a network, or the internet.
You may be a fast learner, but definitely not that fast. IMAO, a couple of weeks is not enough time to understand the language well enough before branching into advanced topics like sockets and networking. You want to get a firm grounding in the language otherwise you will have a fight in two fronts -- fighting a language you don't quite understand yet AND trying to understand high-level concepts.

Give the language a little more time to get firmly absorbed into your grey matter, then it's much easier to learn outside topics.

It's kinda like starting to learn French and deciding to read Les Misérables right away. Most of your time is spent looking up French words than understanding the story.
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
  #4  
Old 01-Jul-2005, 08:00
Pr0fess0r Pr0fess0r is offline
New Member
 
Join Date: Jun 2005
Posts: 5
Pr0fess0r is on a distinguished road
Okay Waltp, any personal preferences for some tutorials to help the absorption process?
  #5  
Old 01-Jul-2005, 11:09
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by Pr0fess0r
Okay Waltp, any personal preferences for some tutorials to help the absorption process?

I'm self-taught from the pre-web days and the way I handled it was using K&R's "Programming in C", compiler documentation, and ten+ years of previous programming experience. I therefore don't know any tutorials on the web. But others here do, hopefully they will add their recomendations.

The ebook "Thinking in C++" looks like a good one by Bruce Eckel. It can be downloaded free. Many of the SAM's books ("Learn something in small number Days") I've also found for download. Check them out.


Here are some useful tutorials in our Tutorial section:
Things to avoid in C/C++
Guidelines for C development
Formatting C/C++ code
Standard I/O
Naming Conventions
Command Line Parameters
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
  #6  
Old 01-Jul-2005, 12:21
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Quote:
Originally Posted by WaltP
I'm self-taught from the pre-web days and the way I handled it was using K&R's "Programming in C" ...

As much as I'd like to make a smart elbow comment on the first half of the sentence I'll stick with the second. The K&R book is one you will most likely treasure. I use c++ but as the standard says, c is valid c++. Make sure you get the one with the big blue C (second edition) on it. ISBN 0131103628. My understanding is that there were some serious changes made in it. Being only barely pre-web myself I have never seen the older edition though. (drat I went and did it anyhow)

Quote:
Originally Posted by WaltP
The ebook "Thinking in C++" looks like a good one by Bruce Eckel. It can be downloaded free.

This one is excellent and you can get both volumes as a download. The frames version is really nice to navigate. The only thing is that there is something to be said for holding an actual book for reference. Maybe one of these days there will be a good Linux tablet that could have your compiler/editor documentation reader etc on it but I think they are still a bit expensive. If you like eBooks it is most excellent. It can be found here.

As far as print material I recomend the following:
Practical C++ ISBN 0596004192
Effective C++ ISBN 0201924889
An Introduction to GCC ISBN 0954161793

Hope this is helpful

Mark

EDIT:
I forgot to add my favorite link
Dinkum Reference. The set a bookmark to the index while you are at it. It is great for getting function sigs.
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #7  
Old 01-Jul-2005, 13:02
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by cable_guy_67
As much as I'd like to make a smart elbow comment on the first half of the sentence I'll stick with the second.
Good boy. Have a biscuit...

Quote:
Originally Posted by cable_guy_67
Being only barely pre-web myself I have never seen the older [K&R book] edition though. (drat I went and did it anyhow)
I've only read the first one, but Version 2 is much thicker. Go for the new one.

Quote:
Originally Posted by cable_guy_67
The only thing is that there is something to be said for holding an actual book for reference.
See that symbol on the GUI bar? The one that looks like a printer???? ;-)

Oh, and search this board because other people have recommended books and tutorials. Other help boards are a good source too.
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
 
 

Recent GIDBlogWriting a book by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent ! Pls Help Me ! mycashmoney C Programming Language 4 01-Jul-2006 23:49
Starting Network Programming pointer MS Visual C++ / MFC Forum 1 02-May-2005 18:54
Looking for Reliable, Cheap ASP, ASP.NET MSSQL Hosting start from $4 stevewatt88 Web Hosting Advertisements & Offers 1 31-Jul-2004 05:27
Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? ebolaosu Computer Hardware Forum 8 26-Feb-2004 12:19
Free 1st month / Free setup / No credit card needed...Plans start at 4.95 LarryIsaac Web Hosting Advertisements & Offers 0 11-Oct-2003 15:03

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:38.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.