httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: pre-patch: struct sockaddr_in error messages
Date Fri, 24 Oct 1997 06:44:37 GMT


On Thu, 23 Oct 1997, Dean Gaudet wrote:

> We've got a few PRs on file asking for client addresses in various error
> messages.  They're quite reasonable requests.  I'd hoped we'd get this
> in way long ago as part of the error log cleanup.
> 
> This patch adds two extensions to ap_snprintf:
>     %S takes a struct sockaddr_in and prints it a.b.c.d:port
>     %A takes a struct sockaddr_in and prints it a.b.c.d

BTW, %A is a lot like using inet_ntoa, except that you can put multiple
addresses into an error message with %A, whereas inet_ntoa uses a lame
static buffer.

Dean


Mime
View raw message