output events on select

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tor Erik Sønvisen

    #1

    output events on select

    Hi

    When using select, what exactly will trigger an output-event?
    I have a socket registered in the output-list of the select but an
    output-event is never generated for that socket. I know the socket is ready
    to send data, so how can I make select return with an output-event?

    regards tores



  • Piet van Oostrum

    #2
    Re: output events on select

    >>>>> "Tor Erik Sønvisen" <tores@stud.cs. uit.no> (TES) wrote:
    [color=blue]
    >TES> When using select, what exactly will trigger an output-event? I have
    >TES> a socket registered in the output-list of the select but an
    >TES> output-event is never generated for that socket. I know the socket is
    >TES> ready to send data, so how can I make select return with an
    >TES> output-event?[/color]

    It is better to talk about status than event. The select should return the
    socket in the ready set for write when a write on that socket can be done
    without blocking. So if it doen't return it then something is wrong. This
    is on Unix systems, by the way. On Windows things might be different.
    --
    Piet van Oostrum <piet@cs.uu.n l>
    URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C 4]
    Private email: piet@vanoostrum .org

    Comment

    Working...