• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Poll.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poll.h


  • Subject: Re: Poll.h
  • From: Brian Hill <email@hidden>
  • Date: Thu, 16 Aug 2001 14:53:34 -0500

On Thursday, August 16, 2001, at 02:37 PM, Chilton Webb wrote:

OK, yet another chunk of code from the Stevens' Networking book I can't get to run. This time I realize I need the poll.h file, only I can't find the poll.h. A few online resources suggest that some of the Unix variants don't support Poll, just Select. Is OSX one of those that don't support it?

Also, where can I find information about things like this so I can stop asking for help with the easy stuff? The man pages? They have an entry for polling, but weren't much help beyond that. I searched every drive I could find for that file. No findey nothin.

There's no poll, just select. I wrote a substitute poll function once (that used select internally) when I was putzing aroung with the icecast server source months ago, but I can't find it at the moment. It wasn't terribly difficult, but I can't type it out from memory...

Don't trust the man pages -- at times, the man pages seem to be for a different operating system... Use the source (the headers) for the definitive answers. The 'locate' command can be really, really handy for this sort of thing (ie., 'locate poll.h', and it won't find it). grep is nice for this too, especially with the recursive flag (ie., 'grep -r poll /usr/include/*' Of course, that won't find it either, since it's not there).

Brian

email@hidden http://personalpages.tds.net/~brian_hill
___________________________________________________________
"Why? I came into this game for adventure - go anywhere, travel
light, get in, get out, wherever there's trouble, a man alone.
Now they've got the whole country sectioned off and you can't
move without a form. I'm the last of a breed."
-- Archibald "Harry" Tuttle, Rogue HVAC Repairman
___________________________________________________________


References: 
 >Poll.h (From: Chilton Webb <email@hidden>)

  • Prev by Date: Re: == nil vs. isEqual:nil
  • Next by Date: missing cursor in Scott Anguish's HTMLEditor tutorial??
  • Previous by thread: Poll.h
  • Next by thread: Re: Poll.h
  • Index(es):
    • Date
    • Thread