From: Jim P. <ji...@jt...> - 2002-02-12 08:36:23
|
> I am working on a C/C++ program that reads from a Packard Bell IR > remote. What I want to do is to be able to query the IR buffer and > determine whether a button has been pressed, and if so, act > accordingly. What I don't want to do is do a wait-for-button-press as my > program is currently coded, but I want the program to go on if there is no > button pressed. > > What's the easiest way to do this? select(2) and poll(2) will both return immediately if given a timeout of 0; use one of them to see if there's any data to be read on the socket. -jim |