On Friday 19 January 2007 08:01, Daniel Risacher wrote:
> From within a mod_perl request handler, fileno(STDOUT) returns -1, which is
> the same thing I got from $r->FILENO.
>
> Any other ideas?

$r->connection->client_socket is an APR::Socket. It corresponds to an 
apr_socket_t in C. This structure contains on UNIX an element called 
socketdes. That is probably what you want. AFAIK there is currently no way to 
access that bit from Perl level. But it's not very complicated to add such an 
interface.

Torsten

Attachment: pgp6flpzMfYEd.pgp
Description: PGP signature

Reply via email to