Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Redirect input/output to socket #4

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ueno
Copy link
Contributor

@ueno ueno commented Jan 19, 2021

This adds necessary tooling of redirecting input/output to a listening socket, configured through a bundled config file.

To test:

cargo build
enarx wasm bundle bundle target/wasm32-wasi/debug/demo.wasm demo.wasm
git clone --depth=1 -b wip/dueno/socket https://github.com/ueno/enarx-wasmldr
cd enarx-wasmldr
cargo run ../demo.wasm
...
nc localhost 5000

Note: only the client can gracefully close the connection (by sending ^D).

ueno added 3 commits January 18, 2021 16:55
To try, use the configuration in `bundle` directory, which listens on
localhost:5000:
enarx wasm bundle bundle target/wasm32-wasi/debug/demo.wasm demo.wasm

Signed-off-by: Daiki Ueno <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant