apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: Info
Date Wed, 28 Jan 2004 13:10:17 GMT
Marco Spinetti wrote:
> Is no blocking IO (using select) supported by apr?

instead of select, use apr_poll()

> Can you give  me some advice of the functions where I can see?

to make a socket non-blocking:

use apr_socket_option_set() with option APR_SO_NONBLOCK
or apr_socket_timeout_set() with timeout 0

to make a pipe non-blocking:

use apr_pipe_timeout_set() with timeout 0

polling on sockets is portable to all APR platforms

polling on pipes does not work on Windows


Mime
View raw message