network programming in C

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DanielJohnson

    network programming in C

    I have done some regular C programming and still learning. I was
    wondering if you could guide me through good resources for thread
    programming and socket programming in C. I have done something in
    python but now I want to do it in C.

    Every help is appreciated.

  • Richard Heathfield

    #2
    Re: network programming in C

    DanielJohnson said:
    I have done some regular C programming and still learning. I was
    wondering if you could guide me through good resources for thread
    programming and socket programming in C. I have done something in
    python but now I want to do it in C.
    It's off-topic here, so I absolutely definitely cannot tell you to get
    "Unix Network Programming", Volume 1, by W Richard Stevens. I
    absolutely definitely cannot tell you that the above advice holds good
    even if you're using Windows, since the book is The Best Book and its
    advice is *mostly* portable to Win32. I absolutely definitely cannot
    mention Quinn or Shute, either. And I absolutely definitely cannot tell
    you that with a little care you can write a remarkably thin abstraction
    layer to sit on the sockets, so that your application code can remain
    portable.

    Oh, I nearly forgot to mention that I absolutely definitely can't tell
    you that Stevens also covers threads (although I don't quite recall
    which Stevens the thread stuff is in, since I so rarely bother with
    threads).

    --
    Richard Heathfield
    "Usenet is a strange place" - dmr 29/7/1999

    email: rjh at the above domain, - www.

    Comment

    • Jean-Marc Bourguet

      #3
      Re: network programming in C

      Richard Heathfield <rjh@see.sig.in validwrites:
      DanielJohnson said:
      >
      I have done some regular C programming and still learning. I was
      wondering if you could guide me through good resources for thread
      programming and socket programming in C. I have done something in
      python but now I want to do it in C.
      >
      It's off-topic here, so I absolutely definitely cannot tell you to get
      "Unix Network Programming", Volume 1, by W Richard Stevens. I
      absolutely definitely cannot tell you that the above advice holds good
      even if you're using Windows, since the book is The Best Book and its
      advice is *mostly* portable to Win32. I absolutely definitely cannot
      mention Quinn or Shute, either. And I absolutely definitely cannot tell
      you that with a little care you can write a remarkably thin abstraction
      layer to sit on the sockets, so that your application code can remain
      portable.
      >
      Oh, I nearly forgot to mention that I absolutely definitely can't tell
      you that Stevens also covers threads (although I don't quite recall
      which Stevens the thread stuff is in, since I so rarely bother with
      threads).
      I seem to remember that it is in the second volume of Unix Network
      Programming and that some material has also been added in the edition of
      Advanced Programming in the Unix Environment revised by Stephen A. Rago.
      But can I wrote it here ?

      Yours,

      --
      Jean-Marc

      Comment

      • Richard Heathfield

        #4
        Re: network programming in C

        Jean-Marc Bourguet said:
        Richard Heathfield <rjh@see.sig.in validwrites:
        >
        <snip>
        >>
        >Oh, I nearly forgot to mention that I absolutely definitely can't
        >tell you that Stevens also covers threads (although I don't quite
        >recall which Stevens the thread stuff is in, since I so rarely bother
        >with threads).
        >
        I seem to remember that it is in the second volume of Unix Network
        Programming and that some material has also been added in the edition
        of Advanced Programming in the Unix Environment revised by Stephen A.
        Rago. But can I wrote it here ?
        Absolutely not. How could you countenance such an idea? It's completely
        off-topic. The OP would be better off asking in a newsgroup devoted to
        his platform, such as

        <news:comp.unix .programmer>
        <news:comp.os.m s-windows.program mer.win32>
        <news:comp.sys. apple2.programm er>

        But yes, I think you're right that it's in UNP2.

        --
        Richard Heathfield
        "Usenet is a strange place" - dmr 29/7/1999

        email: rjh at the above domain, - www.

        Comment

        • DanielJohnson

          #5
          Re: network programming in C

          <news:comp.unix .programmer>
          <news:comp.os.m s-windows.program mer.win32>
          <news:comp.sys. apple2.programm er>
          >
          But yes, I think you're right that it's in UNP2.
          Thanks, I needed for the Unix platform. I got the idea, and really
          appreciate it.

          Comment

          • Richard

            #6
            Re: network programming in C

            Richard Heathfield <rjh@see.sig.in validwrites:
            DanielJohnson said:
            >
            >I have done some regular C programming and still learning. I was
            >wondering if you could guide me through good resources for thread
            >programming and socket programming in C. I have done something in
            >python but now I want to do it in C.
            >
            It's off-topic here, so I absolutely definitely cannot tell you to get
            "Unix Network Programming", Volume 1, by W Richard Stevens. I
            absolutely definitely cannot tell you that the above advice holds good
            even if you're using Windows, since the book is The Best Book and its
            advice is *mostly* portable to Win32. I absolutely definitely cannot
            mention Quinn or Shute, either. And I absolutely definitely cannot tell
            you that with a little care you can write a remarkably thin abstraction
            layer to sit on the sockets, so that your application code can remain
            portable.
            >
            Oh, I nearly forgot to mention that I absolutely definitely can't tell
            you that Stevens also covers threads (although I don't quite recall
            which Stevens the thread stuff is in, since I so rarely bother with
            threads).
            A much better book for threads is Programming With POSIX Threads by Butenhof.

            Comment

            • Randy Howard

              #7
              Re: network programming in C

              On Fri, 9 Mar 2007 17:59:57 -0500, Richard wrote
              (in article <871wjyt1c2.fsf @gmail.com>):
              Richard Heathfield <rjh@see.sig.in validwrites:
              >
              >DanielJohnso n said:
              >>
              >>I have done some regular C programming and still learning. I was
              >>wondering if you could guide me through good resources for thread
              >>programming and socket programming in C. I have done something in
              >>python but now I want to do it in C.
              >>
              >It's off-topic here, so I absolutely definitely cannot tell you to get
              >"Unix Network Programming", Volume 1, by W Richard Stevens. I
              >absolutely definitely cannot tell you that the above advice holds good
              >even if you're using Windows, since the book is The Best Book and its
              >advice is *mostly* portable to Win32. I absolutely definitely cannot
              >mention Quinn or Shute, either. And I absolutely definitely cannot tell
              >you that with a little care you can write a remarkably thin abstraction
              >layer to sit on the sockets, so that your application code can remain
              >portable.
              >>
              >Oh, I nearly forgot to mention that I absolutely definitely can't tell
              >you that Stevens also covers threads (although I don't quite recall
              >which Stevens the thread stuff is in, since I so rarely bother with
              >threads).
              >
              A much better book for threads is Programming With POSIX Threads by Butenhof.
              Agreed, in fact, it's probably the only dedicated book out there on the
              topic of pthreads worth the price of admission.

              --
              Randy Howard (2reply remove FOOBAR)
              "The power of accurate observation is called cynicism by those
              who have not got it." - George Bernard Shaw





              Comment

              Working...