|
Home > Archive > Unix Programming > January 2005 > socket programming
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
socket programming
|
|
| puzzlecracker 2005-01-17, 5:56 pm |
| Can someone advice on a good tutorial of socket programming under UNIX
Linux?
What are standard POSIX commands: open, listen, connect, send,
receive, and bind, broadcast???? I am not very familiar with the
standard, please suggest.
Does select ()/poll () belong to the same list?
I AM totally confused; please help me disambiguate my confusion.
Thx
| |
| Pascal Bourguignon 2005-01-17, 5:56 pm |
|
"puzzlecracker" <ironsel2000@gmail.com> writes:
> Can someone advice on a good tutorial of socket programming under UNIX
> Linux?
>
> What are standard POSIX commands: open, listen, connect, send,
> receive, and bind, broadcast???? I am not very familiar with the
> standard, please suggest.
>
> Does select ()/poll () belong to the same list?
>
> I AM totally confused; please help me disambiguate my confusion.
http://www.opengroup.org/onlinepubs/007904975/
--
__Pascal_Bourguignon__ _ Software patents are endangering
() ASCII ribbon against html email (o_ the computer industry all around
/\ 1962:DO20I=1.100 //\ the world http://lpf.ai.mit.edu/
2001:my($f)=`fortune`; V_/ http://petition.eurolinux.org/
| |
| Rich Teer 2005-01-17, 5:56 pm |
| On Mon, 17 Jan 2005, puzzlecracker wrote:
> Can someone advice on a good tutorial of socket programming under UNIX
> Linux?
Get yourself a copy of "UNIX Network Programming, Volume 1", by
Richard Stevens et al.
> Does select ()/poll () belong to the same list?
Not really, as those functions can be used with file descriptors
that don't refer to sockets.
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
| |
| puzzlecracker 2005-01-17, 8:51 pm |
| I am more interested in a comprehensive tutorial, which would enable me
to understand POSIX standard for sockets as well as threads. I am sure
there is one available ... and I need to be pointed at it.
Need more and more constructive suggests... thanks for enormous help...
highly appreciated.
| |
| Rich Teer 2005-01-18, 2:51 am |
| On Mon, 17 Jan 2005, puzzlecracker wrote:
> I am more interested in a comprehensive tutorial, which would enable me
> to understand POSIX standard for sockets as well as threads. I am sure
> there is one available ... and I need to be pointed at it.
You already have been: Stevens et al's UNIX Network Programming. For
threads, check out Butenhof's book.
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
| |
| joe durusau 2005-01-18, 7:51 am |
|
puzzlecracker wrote:
> I am more interested in a comprehensive tutorial, which would enable me
> to understand POSIX standard for sockets as well as threads. I am sure
> there is one available ... and I need to be pointed at it.
>
> Need more and more constructive suggests... thanks for enormous help...
> highly appreciated.
If you want something free, quick, and dirty, search for "beej" on Google.
There is a network programming tutorial by that name, that is fair,
and might help you to get started.
Speaking only for myself,
Joe Durusau
| |
| Chuck Dillon 2005-01-18, 5:56 pm |
| puzzlecracker wrote:
> Can someone advice on a good tutorial of socket programming under UNIX
> Linux?
>
> What are standard POSIX commands: open, listen, connect, send,
> receive, and bind, broadcast???? I am not very familiar with the
> standard, please suggest.
>
> Does select ()/poll () belong to the same list?
>
> I AM totally confused; please help me disambiguate my confusion.
>
> Thx
>
This might be of help: http://www.faqs.org/faqs/unix-faq/socket/
Also netcat (http://freshmeat.net/projects/netcat/) is sometimes
recommended as a good sample implemtation to study. It's a simple
utility that's not large (in terms of source code) and handles most of
what you encounter at the socket level.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
|
|
|
|
|