httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler MacDonald <ty...@yi.org>
Subject Re: How to get at the apr_socket_t?
Date Thu, 11 May 2006 22:02:52 GMT
William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
> >    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?
> In httpd 2.0 there's no assurance that httpd is even accessed by a socket,
> so of course you are rolling the dice.  For example, in mod_perchild, the
> backend is a domain socket to another instance of Apache.  In mod_ftp you
> would see the data socket, not the control socket, etc.  It's private for
> a reason, if you know what you are doing, declare CORE_PRIVATE and use it.

	Okay, fair enough. I think I know what I'm doing, so I'll go ahead
with it. :-)

Davi Arnaut <davi@haxent.com.br> wrote:
> How about: conn_rec->cs->pfd->desc ?

	So what exactly is that, William? Is that the same socket, the main
listening socket that httpd accept()s on, or something else?

	Thanks,
		Tyler


Mime
View raw message