httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Farber <alexander.far...@gmail.com>
Subject Re: How to access client socket from a protocol handler
Date Sat, 23 Oct 2010 08:13:27 GMT
On Sat, Oct 23, 2010 at 10:09 AM, Alexander Farber
<alexander.farber@gmail.com> wrote:
> http://perl.apache.org/dist/mod_perl-2.0-current/xs/Apache2/Connection/Apache2__Connection.h
>
>    apr_socket_t *socket =
>        ap_get_module_config(c->conn_config, &core_module);
>
>    if (s) {
>        ap_set_module_config(c->conn_config, &core_module, s);
>    }
>
> Maybe this ensures, that the custom perl protocol handler gets
> the correct socket (the one bound at the port 843 and not 80)?

No, they probably do it so that they can get/set socket...

I wonder why my mod_perl module works and the C one not.

Regards
Alex

Mime
View raw message