Thread: unix networking

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    1
    Rep Power
    0

    Lightbulb unix networking


    I am reading unix netwrok programming volume 1 by stevens. It's a known book for network programming.

    I am still trying to understand well the code in figure 6.22 p166. There is one point that I still don't understand why is why the nready variable is decremented twice i.e once in line 43 and another time in line 58! I think that it should be only decremented once for each pass of the for( ; ; ) loop.

    Waiting for your clarification

    Aboujouj
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    113
    I'm afraid not everybody has a copy of your book - why not take a snippet of code, or explain the problem and then we can all cast an eye over it.

    christo
    This is me: http://chris.uk.com
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    2
    Rep Power
    0

    Exclamation Unix Shell


    Hi everybody,
    has any1 got any idea about a project in shell programming? unix internet analyser in shell script? anyone can help or suggest any idea for a project?
    Regards,
    Nima

IMN logo majestic logo threadwatch logo seochat tools logo