a68570b5d9
1. Add computing offloading code 2. Add script.md 3. Add virsh_demo.xml Change-Id: Id9ef883e2f0eb727eb5448b9d1c47767f46b1021 Signed-off-by: Yikun Jiang <yikunkero@gmail.com> |
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
rexec_server.c | ||
rexec_shim.c | ||
rexec_sock.c | ||
rexec_sock.h | ||
rexec.c | ||
rexec.h |
rexec
rexec is a sample application demonstrating libchan nested channels and bytestreams through remote executation calls. This is a minimal implementation to demonstrate the usage of libchan.
Usage
Server
$ cd rexec_server
$ go build .
$ ./rexec_server
Client
$ go build .
$ ./rexec /bin/echo "hello"
hello
$ ./rexec /bin/sh -c "exit 4"
$ echo $?
4
Usage with TLS
Server
$ TLS_CERT=./cert.pem TLS_KEY=./key.pem ./rexec_server
Client
$ USE_TLS=true ./rexec /bin/echo "hello"
hello