From c6b5b1f1470e1fa0e94680b04c26fd3118b1f463 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 18 Aug 2002 02:12:39 +0000 Subject: 17558: zsh/net/socket , zsocket builtin --- Doc/Zsh/.distfiles | 3 ++- Doc/Zsh/builtins.yo | 1 + Doc/Zsh/mod_socket.yo | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 Doc/Zsh/mod_socket.yo (limited to 'Doc') diff --git a/Doc/Zsh/.distfiles b/Doc/Zsh/.distfiles index 21fd2d5ea..1953af938 100644 --- a/Doc/Zsh/.distfiles +++ b/Doc/Zsh/.distfiles @@ -6,7 +6,8 @@ DISTFILES_SRC=' mod_clone.yo mod_compctl.yo mod_complete.yo mod_complist.yo mod_computil.yo mod_deltochar.yo mod_example.yo mod_files.yo mod_langinfo.yo mod_mapfile.yo mod_mathfunc.yo mod_parameter.yo mod_pcre.yo mod_sched.yo - mod_stat.yo mod_tcp.yo mod_termcap.yo mod_terminfo.yo mod_zftp.yo mod_zle.yo + mod_socket.yo mod_stat.yo mod_tcp.yo mod_termcap.yo mod_terminfo.yo + mod_zftp.yo mod_zle.yo mod_zleparameter.yo mod_zselect.yo mod_zutil.yo mod_zprof.yo mod_zpty.yo modules.yo modlist.yo modmenu.yo manmodmenu.yo options.yo params.yo prompt.yo redirect.yo restricted.yo seealso.yo diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 2d902f336..88e7e266f 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1733,6 +1733,7 @@ module(zparseopts)(zsh/zutil) module(zprof)(zsh/zprof) module(zpty)(zsh/zpty) module(zregexparse)(zsh/zutil) +module(zsocket)(zsh/net/socket) module(zstyle)(zsh/zutil) module(ztcp)(zsh/net/tcp) enditem() diff --git a/Doc/Zsh/mod_socket.yo b/Doc/Zsh/mod_socket.yo new file mode 100644 index 000000000..9c503ffe5 --- /dev/null +++ b/Doc/Zsh/mod_socket.yo @@ -0,0 +1,64 @@ +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(-adltv) ] [ 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. + +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, the first non-option 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, the first non-option 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, the first non-option 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() -- cgit 1.4.1