Hi,

On Thu, Jun 27, 2013 at 6:45 PM, Narendran K <[email protected]> wrote:
> All,
>
> I am writing a program that uses select call to check if a packet is
> available in the socket to read. the program has also a timer running
> (setitimer) and the resulting SIGALRM is handled using a handler.
>

        Though I am not directly answering your question, I would
suggest using epoll(and non-blocking sockets). So, you will be
notified of data when it arrives. You don't have to block for some
timeout secs(or milliseconds). Once you have a EPOLL_IN notification,
you can use recv() and read all available data. Thanks

-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
                                                             - Swami Vivekananda

Mail: [email protected]
Blog: http://benignbala.wordpress.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to