Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 34129 invoked from network); 26 Oct 2006 07:23:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 07:23:49 -0000 Received: (qmail 24496 invoked by uid 500); 24 Oct 2006 16:00:33 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 24464 invoked by uid 500); 24 Oct 2006 16:00:33 -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 24453 invoked by uid 99); 24 Oct 2006 16:00:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 09:00:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.53.205.130] (HELO life.mcgrawsoftware.com) (216.53.205.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 09:00:18 -0700 Received: from [66.108.212.148] (helo=Ryan) by life with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1GcOh0-0002XK-TB for dev@apr.apache.org; Tue, 24 Oct 2006 11:59:55 -0400 From: "David Horowitz" To: "APR Developer List" Subject: apr_socket_recvfrom question Date: Tue, 24 Oct 2006 11:59:41 -0400 Message-ID: <03e101c6f785$6e059b10$6501a8c0@Ryan> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, I'm wondering about apr_socket_recvfrom, specifically the "from" = parameter. It is understood that "from" returns the apr_socketaddr_t of the sending socket upon return. However, I see discrepancies on whether "from" has = any significance as an input parameter. APR test code indicates the "from" parameter is used as an input-output parameter, indicating upon input the sockets from which we are willing = to receive data. However, recvfrom(2) man page makes no mention of "from" as anything = other than an output parameter, and even mentions it can be NULL if you don't = care about the sender's identifying information. So, my question: is "from" indeed an input-output parameter, or just an output parameter? Again, I confirm APR test code indicates it's both, = but if recvfrom(2) doesn't treat it as such, than apr_socket_recvfrom() = obviously won't either. Does anyone have clarity on this subject? Thank you, David