diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-14 07:09:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-14 07:09:38 -0700 |
commit | 82a11e883049d6578b0301b61603e088dc89773f (patch) | |
tree | 89a15fb1317ab3880a3e2a0289f7bc529d0b816a /txr.1 | |
parent | b25b55d0d935a9b995e3596ec06ab6378ff931e8 (diff) | |
download | txr-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.1 | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 ) |