about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-04-26 04:05:08 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-04-26 04:05:08 +0000
commitf0ebed57619e1c43c8fc7a56781df911d7973541 (patch)
tree301da75b919867585280ce30ed149a0c3425414f /Doc
parent0fd5156fdff9e8b597f77260fd1ba8f3d1c8c729 (diff)
downloadzsh-f0ebed57619e1c43c8fc7a56781df911d7973541.tar.gz
zsh-f0ebed57619e1c43c8fc7a56781df911d7973541.tar.xz
zsh-f0ebed57619e1c43c8fc7a56781df911d7973541.zip
Merge 21248: avoid use of subsection within list.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_socket.yo66
1 files changed, 66 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_socket.yo b/Doc/Zsh/mod_socket.yo
new file mode 100644
index 000000000..332c551fe
--- /dev/null
+++ b/Doc/Zsh/mod_socket.yo
@@ -0,0 +1,66 @@
+COMMENT(!MOD!zsh/net/socket
+Manipulation of Unix domain sockets
+!MOD!)
+The tt(zsh/net/socket) module makes available one builtin command:
+
+startitem()
+findex(zsocket)
+cindex(sockets)
+cindex(sockets, Unix domain)
+item(tt(zsocket) [ tt(-altv) ] [ tt(-d) var(fd) ] [ var(args) ])(
+tt(zsocket) is implemented as a builtin to allow full use of shell
+command line editing, file I/O, and job control mechanisms.
+)
+enditem()
+
+subsect(Outbound Connections)
+cindex(sockets, outbound Unix domain)
+
+startitem()
+item(tt(zsocket) [ tt(-v) ] [ tt(-d) var(fd) ] var(filename))(
+Open a new Unix domain connection to var(filename).
+The shell parameter tt(REPLY) will be set to the file descriptor
+associated with that connection.  Currently, only stream connections
+are supported.
+
+If tt(-d) is specified, its argument
+will be taken as the target file descriptor for the
+connection.
+
+In order to elicit more verbose output, use tt(-v).
+)
+enditem()
+
+subsect(Inbound Connections)
+cindex(sockets, inbound Unix domain)
+
+startitem()
+item(tt(zsocket) tt(-l) [ tt(-v) ] [ tt(-d) var(fd) ] var(filename))(
+tt(zsocket -l) will open a socket listening on var(filename).
+The shell parameter tt(REPLY) will be set to the file descriptor
+associated with that listener.
+
+If tt(-d) is specified, its argument
+will be taken as the target file descriptor for
+the connection.
+
+In order to elicit more verbose output, use tt(-v).
+)
+item(tt(zsocket) tt(-a) [ tt(-tv) ] [ tt(-d) var(targetfd) ] var(listenfd))(
+tt(zsocket -a) will accept an incoming connection
+to the socket associated with var(listenfd).
+The shell parameter tt(REPLY) will
+be set to the file descriptor associated with
+the inbound connection.
+
+If tt(-d) is specified, its argument
+will be taken as the target file descriptor for the
+connection.
+
+If tt(-t) is specified, tt(zsocket) will return
+if no incoming connection is pending.  Otherwise
+it will wait for one.
+
+In order to elicit more verbose output, use tt(-v).
+)
+enditem()