output events on select

T

Tor Erik Sønvisen

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
 
P

Piet van Oostrum

Tor Erik Sønvisen said:
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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,007
Latest member
Elvis60357

Latest Threads

Top