From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doco socketpair Date: Tue, 26 Aug 2003 08:02:27 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87he45cs5o.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061871339 25374 80.91.224.253 (26 Aug 2003 04:15:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 04:15:39 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 26 06:15:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19rVF3-0005TE-00 for ; Tue, 26 Aug 2003 06:15:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rVDz-0006JD-Mi for guile-devel@m.gmane.org; Tue, 26 Aug 2003 00:14:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19rVBr-0005Up-RO for guile-devel@gnu.org; Tue, 26 Aug 2003 00:12:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19rVAs-0004sr-Q4 for guile-devel@gnu.org; Tue, 26 Aug 2003 00:11:51 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.20) id 19rV6y-0002gq-GJ for guile-devel@gnu.org; Tue, 26 Aug 2003 00:07:16 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7PM2v0J021890 for ; Tue, 26 Aug 2003 08:02:57 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h7PM2vkv011028 for ; Tue, 26 Aug 2003 08:02:57 +1000 (EST) Original-Received: from localhost (ppp74.dyn228.pacific.net.au [203.143.228.74]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h7PM2cos002423 for ; Tue, 26 Aug 2003 08:02:47 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19rPPv-0000kx-00; Tue, 26 Aug 2003 08:02:27 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2711 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2711 * posix.texi (Network Sockets and Communication): In socketpair, clarify the return is a pair with ports in car and cdr, note connection is full duplex, refer to `socket' for parameters, refer to PF_UNIX rather than AF_UNIX. The glibc manual has AF_LOCAL (the same as AF_UNIX) in its description of socketpair, but if I understand this stuff it's PF_UNIX (or PF_LOCAL) which is correct for a protocol namespace (as opposed to an address format). I guess the two are the same value anyway, so it doesn't matter. - Scheme Procedure: socketpair family style proto - C Function: scm_socketpair (family, style, proto) Return a pair, the `car' and `cdr' of which are two unnamed socket ports connected to each other. The connection is full-duplex, so data can be transferred in either direction between the two. FAMILY, STYLE and PROTO are as per `socket' above. But many systems only support socket pairs in the `PF_UNIX' family. Zero is likely to be the only meaningful value for PROTO. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel