├── .cargo └── config.toml ├── .github ├── docker │ └── Dockerfile └── workflows │ ├── build.yml │ ├── deploy-doc.yml │ ├── example_0.13.yml │ └── fmt.yml ├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── examples ├── README.md ├── get_addrinfo.rs ├── http_client │ ├── .gitignore │ ├── Cargo.toml │ ├── README.md │ ├── server.py │ └── src │ │ └── main.rs ├── http_server │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── main.rs ├── nonblock_http_client │ ├── Cargo.toml │ └── src │ │ └── main.rs ├── nonblock_tcp_stream.rs ├── poll_tcp_listener.rs ├── socket_addr.rs ├── tcp_listener.rs ├── tcp_stream.rs ├── try_dns.rs ├── try_sock_opt.rs ├── udp_reverse.rs └── udp_socket.rs └── src ├── lib.rs ├── poll.rs ├── socket.rs └── wasi_poll.rs /.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.cargo/config.toml -------------------------------------------------------------------------------- /.github/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.github/docker/Dockerfile -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/deploy-doc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.github/workflows/deploy-doc.yml -------------------------------------------------------------------------------- /.github/workflows/example_0.13.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.github/workflows/example_0.13.yml -------------------------------------------------------------------------------- /.github/workflows/fmt.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.github/workflows/fmt.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/README.md -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/get_addrinfo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/get_addrinfo.rs -------------------------------------------------------------------------------- /examples/http_client/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ -------------------------------------------------------------------------------- /examples/http_client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_client/Cargo.toml -------------------------------------------------------------------------------- /examples/http_client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_client/README.md -------------------------------------------------------------------------------- /examples/http_client/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_client/server.py -------------------------------------------------------------------------------- /examples/http_client/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_client/src/main.rs -------------------------------------------------------------------------------- /examples/http_server/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_server/Cargo.toml -------------------------------------------------------------------------------- /examples/http_server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_server/README.md -------------------------------------------------------------------------------- /examples/http_server/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/http_server/src/main.rs -------------------------------------------------------------------------------- /examples/nonblock_http_client/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/nonblock_http_client/Cargo.toml -------------------------------------------------------------------------------- /examples/nonblock_http_client/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/nonblock_http_client/src/main.rs -------------------------------------------------------------------------------- /examples/nonblock_tcp_stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/nonblock_tcp_stream.rs -------------------------------------------------------------------------------- /examples/poll_tcp_listener.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/poll_tcp_listener.rs -------------------------------------------------------------------------------- /examples/socket_addr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/socket_addr.rs -------------------------------------------------------------------------------- /examples/tcp_listener.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/tcp_listener.rs -------------------------------------------------------------------------------- /examples/tcp_stream.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/tcp_stream.rs -------------------------------------------------------------------------------- /examples/try_dns.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/try_dns.rs -------------------------------------------------------------------------------- /examples/try_sock_opt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/try_sock_opt.rs -------------------------------------------------------------------------------- /examples/udp_reverse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/udp_reverse.rs -------------------------------------------------------------------------------- /examples/udp_socket.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/examples/udp_socket.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/poll.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/src/poll.rs -------------------------------------------------------------------------------- /src/socket.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/src/socket.rs -------------------------------------------------------------------------------- /src/wasi_poll.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/second-state/wasmedge_wasi_socket/HEAD/src/wasi_poll.rs --------------------------------------------------------------------------------