httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler MacDonald <>
Subject Re: How to get at the apr_socket_t?
Date Thu, 11 May 2006 20:36:44 GMT
Tyler MacDonald <> 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?

		- Tyler

View raw message