Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!qantel!lll-lcc!lll-crg!seismo!munnari!moncskermit!basser!metro!pta!dave From: dave@pta.OZ (Dave Horsfall) Newsgroups: net.unix-wizards Subject: connecting file descriptors Message-ID: <141@pta.OZ> Date: Mon, 22-Sep-86 20:29:38 EDT Article-I.D.: pta.141 Posted: Mon Sep 22 20:29:38 1986 Date-Received: Tue, 30-Sep-86 05:54:31 EDT Organization: SUN Computer Aust., Sydney, AUSTRALIA Lines: 21 Keywords: pipe, socket Dear all, Is there a way to connect together two file descriptors? In my application, I have an array of pipe fd's, and an fd returned from an accept() call. I want to connect the accept'ed fd to a particular pipe fd. In other words, I want a process to start reading from that socket. One hideous way is to spawn a "cat" in the middle of the file descriptors, with attendant close's and dup's, but there must be a better way ... Mail replies are preferred, since it takes forever to read this newsgroup at 1200 baud, and I'm currently about 200 articles behind! -- Dave Horsfall VK2KFU ISD: +61 2 438-1266 TLX: AA23066 SUN Computer Australia STD: (02) 438-1266 FAX: +61 2 923-2570 20 Waltham St ACS: dave@pta, dave@runx Artarmon NSW 2064 UUCP: seismo!munnari!pta.oz!dave AUSTRALIA ARPA: dave%pta.oz@seismo.arpa "ADA - from the people who brought you COBOL"