Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
wasmtime: add net syscalls for an udp echo server
Browse files Browse the repository at this point in the history
This demo shows the extension of the previously introduced _stdio_ syscall
module, and adds a _net_ syscall module, which implements rudimentary
UDP functionality.

The WASM guest application uses these syscalls to build an UDP echo
server.
  • Loading branch information
steveej committed Nov 26, 2019
1 parent 9834e7c commit ee92f24
Show file tree
Hide file tree
Showing 9 changed files with 1,928 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ members = [
"wasmtime-basic",
"wasmtime-native-embed",
"wasmtime-custom-syscall",
"wasmtime-udp-echoserver",
]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ sent off-platform to the tenant, who can verify the Quote with a certificate cha

## [Wasmtime - Simple Custom Syscall](wasmtime-custom-syscall)
Providing a simple _println_ syscall to a pre-compiled WASM binary written in Rust.

## [Wasmtime - UDP Echo-Server](wasmtime-udp-echoserver)
Providing a rudimentary UDP implementation to a pre-compiled WASM binary written in Rust, which implements a UDP Echo-Server on top of the provided syscalls.
Loading

0 comments on commit ee92f24

Please sign in to comment.