guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

socketpairs


From: Catonano
Subject: socketpairs
Date: Thu, 7 Feb 2019 10:36:51 +0100

I don't understand what socketpairs are for

The manual states:

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


and what's the point of having 2 ports connected to each other ?

what's the use case meant to be covered by this ?
What's the scenario ?


     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.

Ah so many systems only support socket pairs in the PF_UNIX family

So the use case is supposedly meant to be on a single machine, not through
the network

Again, what are we talking about here ?

Thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]