apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett Rooney <roo...@electricjellyfish.net>
Subject Re: find the bind port in apr version 1.0.1
Date Wed, 22 Dec 2004 19:32:54 GMT
Dror Shilo wrote:
> In apr version 1.0.1 the function
> apr_sockaddr_port_get was removed.
> So if you bind to port 0 , and after the bind you have to find the port 
> that was peeked . how you can do it ?

Well, all apr_sockaddr_port_get did was return the 'port' field in the 
sockaddr.  If all you want is the same behavior apr_sockaddr_port_get 
used to have you can just grab that value, although honestly I'm not 
sure that it will have the correct value after a bind to port 0, so what 
you're asking for may never have worked.


View raw message