Click to See Complete Forum and Search --> : Sockets in C
Resident_Geek
04-20-2003, 08:55 PM
I've searched the heck out of google.com/linux, and I can't seem to find any tutorials on programming sockets in C. I understand TCP/IP very well, I just need the syntax. I didn't try just google.com, because I got several winsock tutorials even in the Linux search, so I figured I'd be overwhelmed by them. Should I try the main Google search, or should I be looking someplace else? Does anyone know of a good one?
GaryJones32
04-20-2003, 11:57 PM
here's some good examples in this book (it's free)
http://www.advancedlinuxprogramming.com/
gotenks2
04-21-2003, 03:38 AM
You could also take a look at Brian Halls
Beej's Guide to Network Programming
here http://www.distrowar.com/sockets/index.html
gotenks2
bwkaz
04-21-2003, 10:03 AM
And/or the man pages for socket(2), bind(2), listen(2), accept(2), and connect(2). That's the basic BSD socket interface layer.
(BTW -- when I say socket(2), I mean the socket manpage in manpage section 2. You'd get to it by doing a man 2 socket)
gfreehed
04-21-2003, 05:06 PM
Here is a great tutorial that I used:
http://www.ecst.csuchico.edu/~beej/guide/net/
Resident_Geek
04-21-2003, 08:56 PM
Thank you so much, guys. And bkwaz, that was an excellent tip. I've seen references to things like awk(2) and ping(8), but I had no idea what that meant. Now I do! :D