summaryrefslogtreecommitdiff
path: root/modules/ssh/channel.scm (follow)
Commit message (Expand)AuthorAgeFilesLines
* channel.scm: Remove trailing bang from 'channel-send-eof'.•••This procedure merely does I/O without mutating its argument, so it does not deserve the trailing '!' (similar to Scheme's 'write', 'put-bytevector', etc. procedures). * libguile-ssh/channel-func.c (gssh_channel_send_eof_x): Rename to... (gssh_channel_send_eof): ... this. Change Scheme name to '%channel-send-eof'. Adjust caller. * modules/ssh/channel.scm (channel-send-eof!): Rename to... (channel-send-eof): ... this. * tests/client-server.scm ("channel-send-eof!"): Rename to... ("channel-send-eof"): ... this. Adjust accordingly. * doc/api-channels.texi (Channel Management): Adjust accordingly. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès2016-11-061-4/+4
* channel.scm (channel-send-eof!): New procedure•••* modules/ssh/channel.scm (channel-send-eof!): New procedure. * libguile-ssh/channel-func.c (gssh_channel_send_eof_x): New procedure. * doc/api-channels.texi: Add description of 'channel-send-eof!'. * tests/client-server.scm ("channel-send-eof!"): New TC. * doc/version.texi, NEWS: Update. Artyom V. Poptsov2016-10-301-1/+9
* popen.scm: Add 'OPEN_PTY' mode•••* modules/ssh/popen.scm: Add 'OPEN_PTY' mode. (open-remote-pipe): Open a pseudo terminal if 'OPEN_PTY' mode is requested. * modules/ssh/channel.scm (make-channel): Use 'string-contains' instead of 'string=?'. * doc/api-popen.texi: Update. Add examples. Artyom V. Poptsov2016-02-221-3/+3
* channel.scm: Update commentary•••* modules/ssh/channel.scm: Update commentary. Artyom V. Poptsov2015-12-141-6/+0
* popen.scm: New module•••* modules/ssh/popen.scm: New module. * modules/ssh/Makefile.am (SCM_SOURCES): Add 'popen.scm'. * modules/ssh/channel.scm: Move 'open-remote-*' procedures to (ssh popen). * modules/ssh/dist/node.scm, tests/popen.scm: Use (ssh popen). * NEWS, README: Update. Artyom V. Poptsov2015-12-061-52/+1
* channel.scm: Update the module commentary•••* modules/ssh/channel.scm: Update the module commentary and copyright dates. Artyom V. Poptsov2015-12-061-1/+7
* channel.scm: Implement I/O pipes•••* modules/ssh/channel.scm (open-remote-pipe, open-remote-pipe*): Accept pipe MODE as an argument. (open-remote-input-pipe, open-remote-input-pipe*) (open-remote-output-pipe, open-remote-output-pipe*): New procedures. * doc/api-channels.texi: Update description of remote pipes. Artyom V. Poptsov2015-12-061-9/+35
* channel.scm (make-channel): Use mode symbols from (ice-9 popen)•••* modules/ssh/channel.scm (make-channel): Use mode symbols 'OPEN_READ', 'OPEN_WRITE' and 'OPEN_BOTH' from (ice-9 popen). * doc/api-channels.texi, NEWS: Update. Artyom V. Poptsov2015-12-051-6/+8
* channel.scm (make-channel): Accept optional flags•••* modules/ssh/channel.scm (make-channel): Accept optional flags that allow to create an input, output or input/output channel. The procedure creates a bidirectional tunnel by default. * libguile-ssh/channel-type.c (guile_ssh_make_channel): Likewise. Rename the Scheme procedure to '%make-channel'. All callers updated. (_scm_from_channel_data): Accept flags. Assert flags value. (print_channel): Print the direction of a channel. (init_channel_type): Define 'RDNG' and 'WRTNG' symbols. * libguile-ssh/channel-type.h: Update. * libguile-ssh/message-func.c (guile_ssh_message_channel_request_open_reply_accept): Update. * doc/api-channels.texi: Update description of 'make-channel'. Artyom V. Poptsov2015-12-051-0/+11
* channel.scm (open-remote-pipe): Handle errors•••* modules/ssh/channel.scm (open-remote-pipe): Handle errors. Artyom V. Poptsov2015-12-041-1/+2
* channel.scm: Add remote pipes•••* modules/ssh/channel.scm (open-remote-pipe, open-remote-pipe*): New procedures. * doc/api-channels.texi: Add "Remote Pipes" section. * NEWS: Update. Artyom V. Poptsov2015-12-041-1/+25
* ssh/*.scm: Move to 'modules/ssh'•••* ssh/auth.scm, ssh/channel.scm, ssh/dist.scm, ssh/key.scm, ssh/log.scm, ssh/message.scm, ssh/server.scm, ssh/session.scm, ssh/tunnel.scm, ssh/version.scm, ssh/dist/Makefile.am, ssh/dist/job.scm, ssh/dist/node.scm: Move to 'modules/ssh'. * ssh/Makefile.am: Update. * modules/Makefile.am (SUBDIRS): Add 'ssh'. * .gitignore: Ignore *.go files. * configure.ac (AC_CONFIG_FILES): Add 'modules/ssh/dist/Makefile'. Artyom V. Poptsov2015-07-251-0/+109