From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20427 invoked from network); 4 Jul 2022 20:45:01 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 4 Jul 2022 20:45:01 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 0817240C23; Tue, 5 Jul 2022 06:44:57 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id 5F4E940952 for ; Tue, 5 Jul 2022 06:44:50 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id E8A8A35E845; Mon, 4 Jul 2022 13:44:49 -0700 (PDT) Date: Mon, 4 Jul 2022 13:44:49 -0700 From: Larry McVoy To: Paul Ruizendaal Message-ID: <20220704204449.GT18597@mcvoy.com> References: <72C18447-E565-4A02-84E2-BFB309E97330@planet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72C18447-E565-4A02-84E2-BFB309E97330@planet.nl> User-Agent: Mutt/1.5.24 (2015-08-30) Message-ID-Hash: XUBTOE4WKF4HF3NFEQYUQ32GQSYV3CUJ X-Message-ID-Hash: XUBTOE4WKF4HF3NFEQYUQ32GQSYV3CUJ X-MailFrom: lm@mcvoy.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Re.: is networking different? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, Jul 04, 2022 at 10:09:52PM +0200, Paul Ruizendaal via TUHS wrote: > With the above one could do > > open("/net/inet/org.tuhs.www:80", O_RDWR | O_STREAM) > > to connect to the TUHS web server, and do > > open("/net/inet/any:80", O_RDWR | O_STREAM | O_CREAT, 0600) > > to create a "listening" (rendez-vous) socket. Decades ago, I tried to make a library that worked like this and it was problematic. There are all sorts of setsockopt things that you sometimes need to set. I'd love to be wrong on this, if anyone has a working, for all of the normal use cases, library like this, I'd love to see it.