1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

(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.
This commit is contained in:
Kevin Ryde 2003-08-29 23:09:39 +00:00
parent 697039a9d6
commit 497cbe2084

View file

@ -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