Re: apr_getnameinfo get localhost

2015-01-28 Thread Jeff Trawick
On Wed, Jan 28, 2015 at 2:26 AM, GHui ugi...@gmail.com wrote: I used the function apr_getnameinfo to get remote hostname. But it return localhost. I don't know why this happend. Any help will be appreciated. --GHui Please show code, such as where the second parameter to apr_getnameinfo()

Re: apr_getnameinfo get localhost

2015-01-28 Thread GHui
From: Jeff Trawick;traw...@gmail.com; Send time: Wednesday, Jan 28, 2015 10:26 PM On Wed, Jan 28, 2015 at 2:26 AM, GHui ugi...@gmail.com wrote: I used the function apr_getnameinfo to get remote hostname. But it return localhost. I don't know why this happend. Any help will be appreciated.