Thread: How hard is learning socket programming?

  1. #1
    Registered User
    Join Date
    Oct 2003

    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!

  2. #2
    verbose cat
    Join Date
    Jun 2003
    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 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 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


  3. #3
    Registered User
    Join Date
    Jun 2003
    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.

  4. #4
    C++ elitesyntax's Avatar
    Join Date
    Mar 2004
    Socket can be fun to learn to.I read a book on linux sockets and it don't sound that hard.
    Compiler Gcc

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Nice bump of a 6 month old thread there
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Apr 2004
    Quote Originally Posted by Salem
    Nice bump of a 6 month old thread there
    server side cilent side
    socket |
    | socket
    bind |
    | Connect
    listen <- |
    | ^ send/recv
    | |
    accept ->

    that easy

  7. #7
    sockets mad
    Join Date
    Mar 2002
    C/C++ Support IRC Channel

    Server: Channel: #csupport

    Come along and help make it a great resource for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Socket program
    By mhetfield in forum C Programming
    Replies: 5
    Last Post: 04-03-2007, 03:46 PM
  2. Datagram Unix socket problem
    By karas in forum C Programming
    Replies: 9
    Last Post: 07-27-2006, 10:08 AM
  3. looking for non-MFC based socket programming sample
    By George2 in forum Networking/Device Communication
    Replies: 1
    Last Post: 06-19-2006, 05:57 AM
  4. Replies: 2
    Last Post: 07-06-2005, 07:11 PM
  5. socket programming - BEGINNER
    By z3ro in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2003, 03:12 PM