You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "hv @ Fashion Content" <in...@fashioncontent.com> on 2006/10/14 19:07:26 UTC
[users@httpd] apr_sockaddr_port_get
Anyone know how to patch to following to support APR 1.2 ?
static apr_status_t
send_headers(request_rec *r, struct sockbuff *s)
{
/* headers to send */
apr_table_t *t;
const apr_array_header_t *hdrs_arr, *env_arr;
apr_table_entry_t *hdrs, *env;
unsigned long int n = 0;
char *buf;
int i;
apr_status_t rv = 0;
apr_port_t port = 0;
apr_sockaddr_port_get(&port, r->connection->remote_addr);
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: apr_sockaddr_port_get
Posted by "hv @ Fashion Content" <in...@fashioncontent.com>.
"hv @ Fashion Content" <in...@fashioncontent.com> skrev i en meddelelse
news:egr5gb$spt$1@sea.gmane.org...
> Anyone know how to patch to following to support APR 1.2 ?
>
> static apr_status_t
>
> send_headers(request_rec *r, struct sockbuff *s)
>
> {
>
> /* headers to send */
>
> apr_table_t *t;
>
> const apr_array_header_t *hdrs_arr, *env_arr;
>
> apr_table_entry_t *hdrs, *env;
>
> unsigned long int n = 0;
>
> char *buf;
>
> int i;
>
> apr_status_t rv = 0;
>
> apr_port_t port = 0;
>
> apr_sockaddr_port_get(&port, r->connection->remote_addr);
>
Apparently the port can be read off the r->connection object
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org