SIGIO question

This is a discussion on SIGIO question within the C Programming forums, part of the General Programming Boards category; Let's say I use SIGIO to determine when to read from a socket and after getting the SIGIO, I don't ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    119

    SIGIO question

    Let's say I use SIGIO to determine when to read from a socket and after getting the SIGIO, I don't read from the socket. Will I continue to get SIGIOs until I read? The man page says SIGIO is sent when "I/O is possible on a descriptor". If I don't read, I/O is still possible on the descriptor. So I'd think that I would continue to receive them until I've read from the socket, even if no new packets arrived after the first one.

    If that's not the case, does SIGIO get sent every time a new packet arrives? For example, if I get a SIGIO and another packet arrives before I read, will i get another SIGIO? So the SIGIO callback would get called twice?

    I found a pretty good blog post answering my Qs if anyone is interested in the answers http://ajaxxx.livejournal.com/62378.html
    Last edited by homer_3; 10-07-2010 at 08:12 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question bout my work
    By SirTalksAlots in forum C Programming
    Replies: 4
    Last Post: 07-18-2010, 03:23 PM
  2. A question about a question
    By hausburn in forum C++ Programming
    Replies: 3
    Last Post: 04-25-2010, 05:24 AM
  3. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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