Linux Socket Programming by Example

This is a discussion on Linux Socket Programming by Example within the Linux Programming forums, part of the Platform Specific Boards category; Has anyone read this book? If so what did you think about it? Was it worth buying or is there ...

  1. #1
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280

    Question Linux Socket Programming by Example

    Has anyone read this book? If so what did you think about it? Was it worth buying or is there a better book on the topic?

  2. #2
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    but ``UNIX Network Programming'' by Richard Stevens is the best one.
    I didn't find it. I have only ``Advance Programming in the UNIX Environment'' by same author Richard Steven. Is this book good?
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  3. #3
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    >> I didn't find it.

    > What do you mean?

    I was trying to find "Unix Network Programming" by Richard Stevens per your recommendation. Unfortunately I couldn't find it in any book store. "Advance Programming in the Unix Environment" by Richard Stevens (same author) was found instead. I bought it. I've just started reading it.
    Have you ever read the one I have?
    May I ask your opinion, if you have read it?
    (I think it's very difficult to write programs on POSIX standard, but I love to learn. Normally I only write ANSI code. But then I started with POSIX)
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  4. #4
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    I will check out that book. You speak very highly of it. I will also take a look at the other book mentioned.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    I have read all three books. All of them are good IMHO.
    By examples are good for very basic stuff.

    The Stevens books (APUE and UNP) are the best for unix/linux/posix programming. I would recomend that you get The Stevens are the best as vVv says, he assumes you know C from the K&R, He also demonistrates some error that he discovered when he was writing the books.

    IMHO he was a true unix hacker (the true, original defenation).

  6. #6
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    he assumes you know C from the K&R
    Although in my classroom I got `A' in C Programming, but I can't claim to be an expert. I will always call myself a n00bie. Because the test is so simple, its purpose is to solve math problems like quick sort, tower of hanoi and so on, which can be implemented by ANSI C. But programming on POSIX is much harder. Moreover my instructor still teach how to use "ls", "cat", he has never gone deep into /sbin and other /bin or even the kernel.
    Ah after I skim through "Advance Programming in the Unix Environment", one thing is missing i.e. pthread_mutex.
    And something disappoints me is that I like C++ too, but C++ in *NIX seems offensive. .
    I have gone so far from topic in this thread sorry.
    Last edited by Jaguar; 05-31-2003 at 11:53 PM.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  7. #7
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    I am not sure what POSIX is, I guess it is just another standard? Anyways here are my plans for learning the C++ language-
    [list=1][*]Finish learning most of the language, basics, intermediate things, and make sure to reveiw pointers and references since I do not fully understand why they would be needed[*]Learn the more advanced stuff, such as sockets[*]Learn what is standard and what is not, this isn't a manditory step but it would be nice to know[*]Learn POSIX, since you all say that it is more difficult, but would anyone explain what it is acually?[/list=1]
    Is this a good plan? Or should I make some changes? During this time I will also be learning more about the *nix OS so that I can better understand differences in OSs (and also better understand what goes on "behind the scenes" in an OS).

    If anyone wants to also recommend a good Linux book (not just a reference), and I would rather it be a basic Linux book other than a specific OS, unless the book explains it so that the same things can be applied to other distributions.

  8. #8
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    ``UNIX Network Programming'' by Richard Stevens
    I have that one. You can say, it is very basic of this topic.
    [ Never code before desk work ]
    -------------------------------------:-->
    A man who fears Nothing is the man who Loves Nothing
    If you Love Nothing, what joy is there in your life.
    =------------------------------------------------------= - I may be wrong.

  9. #9
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    This link is also good for learning ``thread''.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux raw socket programming
    By cnb in forum Networking/Device Communication
    Replies: 17
    Last Post: 11-08-2010, 07:56 AM
  2. socket programming in c or c++ in linux...
    By pk20 in forum Linux Programming
    Replies: 5
    Last Post: 02-12-2009, 12:54 AM
  3. linux, doubles, and unions
    By paraglidersd in forum Linux Programming
    Replies: 14
    Last Post: 11-19-2008, 10:41 AM
  4. pthread and socket porting from Linux to Windows
    By mynickmynick in forum C Programming
    Replies: 2
    Last Post: 07-18-2008, 06:57 AM
  5. socket programming in linux
    By crazeinc in forum C Programming
    Replies: 1
    Last Post: 05-27-2005, 07:40 PM

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