From owner-freebsd-hackers Sat Jan 30 09:46:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16462 for freebsd-hackers-outgoing; Sat, 30 Jan 1999 09:46:37 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from singularity.enigami.com (singularity.enigami.com [208.140.182.42]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA16434 for ; Sat, 30 Jan 1999 09:46:30 -0800 (PST) (envelope-from ckempf@singularity.enigami.com) Received: (from ckempf@localhost) by singularity.enigami.com (8.9.2/8.9.1) id MAA31405; Sat, 30 Jan 1999 12:46:28 -0500 (EST) To: Jamie Howard , freebsd-hackers@FreeBSD.ORG Subject: Re: socketpair(2) References: From: Cory Kempf Date: 30 Jan 1999 12:46:28 -0500 In-Reply-To: Jamie Howard's message of "Sat, 30 Jan 1999 12:26:01 -0500 (EST)" Message-ID: Lines: 21 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jamie Howard writes: > Since I have need of socketpair(2) supporting PF_INET, it seemed like a > logical place to try this out. socketpair(2) only works with unix domain sockets, not inet domain sockets. It is a hack to allow the creation of pair of connected sockets. This is only useful when both client and server live on the same machine. If you want internet domain sockets, you will need to go throught the socket/bind/connect/listen/accept mechanism. See the BUGS section of the man page. +C -- Thinking of purchasing RAM from the Chip Merchant? Please read this first: Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message