mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +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:
parent
697039a9d6
commit
497cbe2084
1 changed files with 8 additions and 5 deletions
|
@ -2197,11 +2197,14 @@ has been connected to another socket.
|
||||||
|
|
||||||
@deffn {Scheme Procedure} socketpair family style proto
|
@deffn {Scheme Procedure} socketpair family style proto
|
||||||
@deffnx {C Function} scm_socketpair (family, style, proto)
|
@deffnx {C Function} scm_socketpair (family, style, proto)
|
||||||
Return a pair of connected (but unnamed) socket ports of the
|
Return a pair, the @code{car} and @code{cdr} of which are two unnamed
|
||||||
type specified by @var{family}, @var{style} and @var{proto}.
|
socket ports connected to each other. The connection is full-duplex,
|
||||||
Many systems support only socket pairs of the @code{AF_UNIX}
|
so data can be transferred in either direction between the two.
|
||||||
family. Zero is likely to be the only meaningful value for
|
|
||||||
@var{proto}.
|
@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
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} getsockopt sock level optname
|
@deffn {Scheme Procedure} getsockopt sock level optname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue