From 497cbe2084f49a55b8ee950ba79f705349c0b538 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Fri, 29 Aug 2003 23:09:39 +0000 Subject: [PATCH] (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. --- doc/ref/posix.texi | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index c2766af51..82a45896f 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -2197,11 +2197,14 @@ has been connected to another socket. @deffn {Scheme Procedure} socketpair family style proto @deffnx {C Function} scm_socketpair (family, style, proto) -Return a pair of connected (but unnamed) socket ports of the -type specified by @var{family}, @var{style} and @var{proto}. -Many systems support only socket pairs of the @code{AF_UNIX} -family. Zero is likely to be the only meaningful value for -@var{proto}. +Return a pair, the @code{car} and @code{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. + +@var{family}, @var{style} and @var{proto} are as per @code{socket} +above. But many systems only support socket pairs in the +@code{PF_UNIX} family. Zero is likely to be the only meaningful value +for @var{proto}. @end deffn @deffn {Scheme Procedure} getsockopt sock level optname