I needed to:
#define CORE_PRIVATE
Sorry about that.
Anyway, this doesn't seem to be working. I'm logging the file
descriptor of different request_rec and the result is always the same,
(this can't be, right?).
Any other way to get the actual socket of a request_rec ?
Thanks!
On Nov 22, 2007 4:
Thank you very much,
what is the core_module symbol referencing to? I can't compile
it without binding that to something.
Giovanni
On Nov 22, 2007 4:05 PM, Tamas Palagyi <[EMAIL PROTECTED]> wrote:
> Try this:
>
> struct apr_socket_t_internal {
>
> apr_pool_t *pool;
> int socketdes
Try this:
struct apr_socket_t_internal {
apr_pool_t *pool;
int socketdes;
};
int getfd(request_rec *r) {
conn_rec *c = r->connection;
apr_socket_t *s = ap_get_module_config(c->conn_config,&core_module);
struct apr_socket_t_internal *i = (struct apr_socket_t_internal *) s
Dear fellow module developer,
given a request_rec*r is there anyway to get to the actual socket
file descriptor from which the request came in?
I have been struggling all day trying to get this info out of a
request_rec. Please help!
Thank you!
Giovanni