computing-offload/qtfs/rexec
Yikun Jiang a68570b5d9 Add computing offloading code
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>
2023-10-23 19:29:57 +08:00
..
Makefile Add computing offloading code 2023-10-23 19:29:57 +08:00
README.md Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec_server.c Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec_shim.c Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec_sock.c Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec_sock.h Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec.c Add computing offloading code 2023-10-23 19:29:57 +08:00
rexec.h Add computing offloading code 2023-10-23 19:29:57 +08:00

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