summaryrefslogtreecommitdiff
path: root/examples/README
diff options
context:
space:
mode:
authorArtyom Poptsov <poptsov.artyom@gmail.com>2014-01-02 23:14:41 +0400
committerArtyom Poptsov <poptsov.artyom@gmail.com>2014-01-02 23:14:41 +0400
commite0171febf8cb240a8defdabeeed51dcd6ac2eefe (patch)
tree8df32d2d3ec00d57d1fb9ea3f8ae2470b2b0105f /examples/README
parentconfigure.ac, NEWS: Bump version to 0.4.0 (diff)
downloadguile-ssh-e0171febf8cb240a8defdabeeed51dcd6ac2eefe.tar.gz
Use Guile port API to implement Guile-SSH channels.
* src/channel-func.c (guile_ssh_channel_read) (guile_ssh_channel_write): Remove. * src/channel-func.h (guile_ssh_channel_read): Remove. * src/channel-type.c (ptob_fill_input, ptob_write, ptob_flush) (ptob_input_waiting, _ssh_channel_to_scm): New procedures. (guile_ssh_make_channel): Use `_ssh_channel_to_scm'. (_scm_to_ssh_channel): Use `SCM_STREAM' macro. (init_channel_type): Register Guile port callbacks. * src/channel-type.h (_ssh_channel_to_scm): Export. * src/channel.scm (channel-read, channel-write): Remove. * src/message-func.c (guile_ssh_message_channel_request_open_reply_accept): Use `_ssh_channel_to_scm'. * examples/echo: Add to the repository. * examples/Makefile.am: Add echo server/client example. * examples/README: Update. * examples/sssh.scm: Update. * README: Update.
Diffstat (limited to 'examples/README')
-rw-r--r--examples/README18
1 files changed, 8 insertions, 10 deletions
diff --git a/examples/README b/examples/README
index 3e2917c..f83ecb2 100644
--- a/examples/README
+++ b/examples/README
@@ -1,31 +1,29 @@
-# -*- mode: outline; -*-
+# -*- mode: org; -*-
* Overview
-
This directory includes an examples of programs that use Guile-SSH
library to access SSH protocol
* Scheme Secure Shell (SSSH)
-
SSSH uses Guile-SSH API to implement basic SSH client functionality.
-
** Usage
-
Please see
-
./sssh.scm --help
for information about program usage.
** Examples
-
./sssh.scm --identity=~/.ssh/id_rsa --user=avp localhost "uname -a"
* Scheme Secure Shell Daemon (SSSHD)
-
SSSHD uses Guile-SSH API to implement basic SSH server functionality.
-
** Usage
-
./ssshd.scm
+* Echo server and client
+Implementation of an SSH based echo protocol ([[https://tools.ietf.org/html/rfc862][RFC862]]) with Guile-SSH.
+Please find sources in `echo/' directory:
+ - echo/client.scm
+ - echo/server.scm
+
+