Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96032 invoked from network); 24 Aug 2016 17:14:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2016 17:14:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.217.182 mail-ua0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:34114] helo=mail-ua0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/CA-10212-DD5DDB75 for ; Wed, 24 Aug 2016 13:14:05 -0400 Received: by mail-ua0-f182.google.com with SMTP id k90so39892082uak.1 for ; Wed, 24 Aug 2016 10:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R6gu/wkssLGZSRZXDntUPHJ/w0+N6NDmLHmb1tP9HWY=; b=rByrQiSyA57A6xge9+H4CKyeRMLd2m0BBsLMQNpJbI4NmirZxAvgkW0CFAImOwYaB/ CIku7XzCGIV7ZE5lHJj6Z5WAlZeMcZ1dn3zP3TKQ2YBzvfcj4V+Fac6lDSbbLYD+hAn3 udcxDrLiiH/yEt0N7jetqF/W5OhoQyOhjzzee2UXBPoUcKLNIoIj/4kgJ0GPEf7UQMFX UppsCzA3cEk/PuwSzmrwvhHts7n1XOzy2GkMK01oW8f9uGARaNu7aFObOqfZSC4YQ+it e77PMLENHjWDlrkZOTJ45MBSYva14lLLuoyXrRqArodqtF/rrO9t+hsa4rCxrfNFHK1k SRzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R6gu/wkssLGZSRZXDntUPHJ/w0+N6NDmLHmb1tP9HWY=; b=Btib6FmEHxA0hCQD1E1WpWtPevjas2pNQVBGGl6PwBut4kExaFDTUoGehsiOOyIR5U HubyH/VGBjzDB+xzwFU2Ki8X7dQ/wlA3fCrIa4ABX51HHLjN6kJQ2s7G5inB6EatsuWw LI1nPeagXrM9pm2fiTYRtnLAI6rS0++ECzNFvSYMf79CQyB1PfkVfQ8asFHGwmYIrxQe 6aT0EBxkC2TsCapT5/4R1gmfB7obl1QLgjy6wZlui/MOHTkiyqupvx4znRK1GGnyPd2a 0HQzEZuDLLv0eZQlLsNG0uMst8auY0rzw39D5dnwcRs7+2qxSHjoCsPPIuicZK5DTVdu a6qw== X-Gm-Message-State: AEkooushdVfY2GR3o1ZSVs30E13uaSojYPe5mdkIzGOFZgf6Sxn2xoohj7W815W+GuQfhbNqYluyLBa3sMd3TA== X-Received: by 10.31.128.85 with SMTP id b82mr1952539vkd.31.1472058842743; Wed, 24 Aug 2016 10:14:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 24 Aug 2016 17:13:51 +0000 Message-ID: To: Derick Rethans Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114284ce6927bc053ad46849 Subject: Re: [PHP-DEV] [RFC][VOTE]: Implement socket_getaddrinfo family From: dave@mudsite.com (David Walker) --001a114284ce6927bc053ad46849 Content-Type: text/plain; charset=UTF-8 On Wed, Aug 24, 2016 at 9:58 AM Derick Rethans wrote: > On Wed, 24 Aug 2016, David Walker wrote: > > > I'd like to open voting on my RFC[1] to implement getaddrinfo(). The > > RFC implements 4 new socket extension functions to aid in the calling, > > examining, and connect/binding of the addrinfo structure. > > Sorry, I missed this discussion. Is there a reason why addrinfo is a > resource, and not an object? I realize resources are needed for the > actual socket, but is it needed for the addrinfo information? > > I would also like to see (in the RFC, but certainly in the docs), how > this works connecting to a specific IPv6 address resource. > > cheers, > Derick > I did message internals a couple weeks back about it, was limited discussion so it was probably missed. I will be adding the _explain example for bishop, and can add an IPv6 example for you too. I went with a resource as addrinfo is itself a structure, which has general information including a pointer to the actual sockaddr to use. I, maybe preemptively, assumed the general use-case would be to use the addrinfo for the sockaddr rather than the general hint-information returned as well. As one ought not to care about how I can connect as long as libc says it should work. And if you had a specific family, or protocol you wanted to connect over, you can always provide the hint to get at it. -- Dave --001a114284ce6927bc053ad46849--