httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject Re: How to get at the apr_socket_t?
Date Thu, 11 May 2006 20:45:48 GMT
On Thu, 11 May 2006 13:36:44 -0700
Tyler MacDonald <tyler@yi.org> wrote:

> Tyler MacDonald <tyler@yi.org> wrote:
> > 	I'm working on a raw tcp/ip handler which is going to have to do
> > nonblocking I/O. I'd like to get direct access to the apr_socket_t from the
> > request_rec/conn_rec...
> 
> OK, I found this in mod_proxy:
> 
>     apr_socket_t *client_socket = ap_get_module_config(r->connection->conn_config,
&core_module);
> 
> But that is only avaialable if CORE_PRIVATE is defined... Does that mean my
> module needs to define CORE_PRIVATE in order to get access to an
> apr_socket_t? That seems dirty to me... is there some better way?
> 

How about: conn_rec->cs->pfd->desc ?

--
Davi Arnaut

Mime
View raw message