You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Cesar Silveira <ce...@tet.com.br> on 2008/03/20 21:11:24 UTC
apr_inet_pton
Hello,
Not sure if this is the right place to ask this. Does anyone know why
apr_inet_pton seems not to be available in the APR library's public API?
By looking at the source code I have found it is only implemented on
UNIX-specific files. However, I was able to take the code and simply
paste and compile it on Visual Studio 2005 and it worked perfectly.
I'll be really glad if anyone can provide me some input on that.
Thanks,
--
Cesar Silveira cesar.silveira@tet.com.br
======================================================
Tools & Technologies - T&T Engenheiros Associados Ltda.
Projetos de SW - Desenvolvendo soluções.
Rua Riachuelo, 1098 Conj. 1204
Centro - Porto Alegre - CEP 90010-272
Fone DDR: (51)3220-3268
Fone/Fax: (51)3220-3220 / 3220-3206
http://www.tteng.com.br/ tet@tteng.com.br
Re: apr_inet_pton
Posted by César Leonardo Blum Silveira <ce...@gmail.com>.
On Thu, Apr 17, 2008 at 12:58 PM, Davi Arnaut <da...@apache.org> wrote:
> Cesar Silveira wrote:
> > Hello,
> >
> > Not sure if this is the right place to ask this. Does anyone know why
> > apr_inet_pton seems not to be available in the APR library's public API?
> > By looking at the source code I have found it is only implemented on
> > UNIX-specific files. However, I was able to take the code and simply
> > paste and compile it on Visual Studio 2005 and it worked perfectly.
> >
> > I'll be really glad if anyone can provide me some input on that.
>
> APR questions are better suited to the apr-dev mailing list. What you
> need to do with apr_inet_pton that cannot be done with other public APR
> functions?
>
Well, I need to do what apr_inet_pton does: convert and IPv6 address
from string format to binary format. I think it would be nice for APR
to offer such functionality since Windows doesn't have anything
similar to apr_inet_pton (yes, there are ways to accomplish the task
in Windows, but they all perform network communication, which results
in performance loss).
> Regards,
>
> --
> Davi Arnaut
>
--
César L. B. Silveira
Re: apr_inet_pton
Posted by Davi Arnaut <da...@apache.org>.
Cesar Silveira wrote:
> Hello,
>
> Not sure if this is the right place to ask this. Does anyone know why
> apr_inet_pton seems not to be available in the APR library's public API?
> By looking at the source code I have found it is only implemented on
> UNIX-specific files. However, I was able to take the code and simply
> paste and compile it on Visual Studio 2005 and it worked perfectly.
>
> I'll be really glad if anyone can provide me some input on that.
APR questions are better suited to the apr-dev mailing list. What you
need to do with apr_inet_pton that cannot be done with other public APR
functions?
Regards,
--
Davi Arnaut