View Full Version : How hard is learning socket programming?
I want to learn socket programming for UNIX. Have no socket programming history although I have a decent understanding of how the Internet works (at its most basic).
I have ordered a book called Unix Network Programming Volume 1 and hear its a good book.
Hope I can become fluent and write network applications soon!
jEssYcAt
10-20-2003, 11:57 PM
If you understand how the internet works, then learning to do sockets programming won't be very hard. You'll just have to learn the library commands that take your data and stream it across the internet (or break it into chunks and toss them in the general direction of the destination).
This site (http://www.ecst.csuchico.edu/~beej/guide/net/html/) helped me learn alot about sockets and how do program them. I knew NULL about sockets before I read this site. After some perseverance and playing around (connecting to your own machine at 127.0.0.1 with a telnet client is useful!) I wrote a simple chat program (horrible coding style, but it taught me how to send and receive data and I plan on revising it as coding practice). HTH YMMV
-jEssYcAt
registering
10-21-2003, 07:54 AM
Learning the basics to sockets programming isn't too hard. I HIGHLY recommend the book "TCP/IP sockets in C" isbn 1-55860-826-5: only 130 pages it gives great explanations, very concise and to the point, and touches on all sorts of socketing issues (multiplexing, asynchronous I/O, etc.). Good luck! Sockets are cool. :)
elitesyntax
05-02-2004, 12:01 PM
Socket can be fun to learn to.I read a book on linux sockets and it don't sound that hard.:)
Salem
05-02-2004, 12:07 PM
Nice bump of a 6 month old thread there
rzcodeman
05-03-2004, 09:05 AM
Nice bump of a 6 month old thread there
server side cilent side
|
socket |
| socket
bind |
| Connect
listen <- |
| ^ send/recv
| |
accept ->
|
send/recv
that easy :)
codec
05-03-2004, 02:01 PM
...wtf?
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.