Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 55040 invoked from network); 1 Mar 2011 23:28:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 23:28:49 -0000 Received: (qmail 51645 invoked by uid 500); 1 Mar 2011 23:28:48 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 51559 invoked by uid 500); 1 Mar 2011 23:28:47 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 51551 invoked by uid 99); 1 Mar 2011 23:28:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 23:28:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of minfrin@sharp.fm designates 72.32.122.20 as permitted sender) Received: from [72.32.122.20] (HELO chandler.sharp.fm) (72.32.122.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 23:28:39 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id 1AB177B997 for ; Tue, 1 Mar 2011 17:27:49 -0600 (CST) Received: from [10.0.0.251] (87-194-125-18.bethere.co.uk [87.194.125.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id A8B327B996 for ; Tue, 1 Mar 2011 17:27:48 -0600 (CST) Message-Id: <3A07557D-E848-47E9-BB32-B34D0BE614FC@sharp.fm> From: Graham Leggett To: APR Developer List Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: apr_portable.h and const struct sockaddr * - getting bonjour to work Date: Wed, 2 Mar 2011 01:27:47 +0200 X-Mailer: Apple Mail (2.936) X-Virus-Scanned: ClamAV using ClamSMTP Hi all, I am currently struggling to get DNSServiceGetAddrInfo() from zeroconf to work nicely with apr_portable.h, and need to clarify whether I am missing anything. DNSServiceGetAddrInfo() returns the DNS lookup in a structure "struct sockaddr *" which I need to convert into an "apr_sockaddr_t *", but I am struggling to find the corresponding function to do it. Is this an oversight in apr or have I missed something? Regards, Graham --