summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-04-14 07:09:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-04-14 07:09:38 -0700
commit82a11e883049d6578b0301b61603e088dc89773f (patch)
tree89a15fb1317ab3880a3e2a0289f7bc529d0b816a /txr.1
parentb25b55d0d935a9b995e3596ec06ab6378ff931e8 (diff)
downloadtxr-82a11e883049d6578b0301b61603e088dc89773f.tar.gz
txr-82a11e883049d6578b0301b61603e088dc89773f.tar.bz2
txr-82a11e883049d6578b0301b61603e088dc89773f.zip
New open-socket-pair function.
* lisplib.c (sock_set_entries): Add open-socket-pair to autoload list. * socket.c (sock_mark_connected, socketpair_wrap): New static functions. (sock_load_init): Register open-socket-pair intrinsic. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.127
1 files changed, 27 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 67dc77d0..b9476e91 100644
--- a/txr.1
+++ b/txr.1
@@ -38283,6 +38283,33 @@ mode in
marks a socket as a real-time-stream, and, if it is opened for writing
or reading and writing, changes it to use line buffering.
+.coNP Function open-socket-pair
+.synb
+.mets (open-socket-pair < family < type <> [ mode-string ])
+.syne
+.desc
+The
+.code open-socket-pair
+function provides an interface to the functionality of the
+.code socketpair
+C library function.
+
+If successful, it creates and returns a list of two stream objects,
+which are sockets that are connected together.
+
+Note: the Internet address families
+.code af-inet
+and
+.code af-inet6
+are not supported.
+
+The
+.code mode-string
+is applied to each stream. For a description, see
+.code open-socket
+and
+.codn open-file .
+
.coNP Functions @ sock-family and @ sock-type
.synb
.mets (sock-family << socket )