Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 80280 invoked by uid 500); 20 Nov 2002 11:43:34 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 80254 invoked from network); 20 Nov 2002 11:43:34 -0000 X-Authentication-Warning: rdu74-177-063.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu74-177-063.nc.rr.com To: Damir Dezeljin Cc: APR Subject: Re: apr_sockaddr_info_get: Posible bug References: From: Jeff Trawick Date: 20 Nov 2002 06:52:21 -0500 In-Reply-To: Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Damir Dezeljin writes: > It look like that this function is used to initialize and construct > apr_sockaddr_t variable. So I use: > --- > apr_sockaddr_t *sa=NULL; > ... > apr_sockaddr_info_get( > &sa, > APR_ANYADDR, > APR_INET, > 20000, > APR_IPV4_ADDR_OK, > my_pool > ); > ... > apr_bind(apr_sock, sa); > --- > > But this doesn't work. After this function call sa on Linux platform > always points to NULL, on Windows it points where it was pointing prior > function call. I'm using a CVS snapshoot of the APR library. In other words, apr_sockaddr_info_get() failed (which probably means your resolver failed). What is the return code from apr_sockaddr_info_get()? What version of Linux is this, by the way? -- Jeff Trawick | trawick@attglobal.net Born in Roswell... married an alien...