httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <i...@bnoordhuis.nl>
Subject Re: How to access client socket from a protocol handler
Date Fri, 22 Oct 2010 21:54:17 GMT
On Fri, Oct 22, 2010 at 23:08, Alexander Farber
<alexander.farber@gmail.com> wrote:
> Unfortunately there aren't many example for the protocol handlers
> on the web or in Nick's book. I've come up with the following,
> but don't know how to get the client socket via conn_rec?

apr_socket_t *client  = ap_get_module_config(conn->conn_config, &core_module);

But note that in most cases direct socket I/O is a bad idea.

Mime
View raw message