1834397 Members
1939 Online
110067 Solutions
New Discussion

Re: socket programming

 
k.s.chakravarthy
Occasional Contributor

socket programming

hi,
can any one tell me the good stes to learn socket programming and what is difference between system calls and library calls??
thanks in advance
coolchecks
3 REPLIES 3
Wodisch
Honored Contributor

Re: socket programming

Hello,

the books by "Stevens" about network programming are really good stuff.

And the difference between "system calls" and "library calls" is that the former are directly executed by the UN*X kernel, but the latter need some additional "libraries" containing the code needed.

HTH,
Wodisch
A. Clay Stephenson
Acclaimed Contributor

Re: socket programming

Hi:

Believe it or not, one of the best ways to learn sockets these days is with the IO::Socket module of Perl. The calls you make in Perl almost exactly mimic what you would do in C. The difference is that you can have Perl sockets up and running in minutes with almost no knowledge of Perl. If you examine the O'reilly 'Perl Cookbook', you can find many examples. After you get your Perl routines going you can switch to C/C++ and probably 90% of your knowledge transfers.

Interestingly, the Perl routines will execute almost as fast as your native C implementations
and will even port to Windows platforms.

Food for thought, Clay

If it ain't broke, I can fix that.
Ian Dennison_1
Honored Contributor

Re: socket programming

Look for 'Beejs guide to network programming' on the web. (I have lost the URL). Very good, goes through the basics well.

Cheers, Ian Dennison
Building a dumber user