How hard is learning socket programming?

This is a discussion on How hard is learning socket programming? within the Networking/Device Communication forums, part of the General Programming Boards category; I want to learn socket programming for UNIX. Have no socket programming history although I have a decent understanding of ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    1

    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
    Posts
    209
    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 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

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    41
    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
    Posts
    12
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User
    Join Date
    Apr 2004
    Posts
    21
    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 ->
    |
    send/recv


    that easy

  7. #7
    sockets mad
    Join Date
    Mar 2002
    Posts
    126
    ...wtf?
    C/C++ Support IRC Channel

    Server: irc.dal.net 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21