Sha256: f0c6017e4a218b5337b1004fcd25eb8403f4a9ce3b0ec95e7c48e1c7eae6dab7

Contents?: true

Size: 1.65 KB

Versions: 25

Compression:

Stored size: 1.65 KB

Contents

;; WASI Sockets.
;;
;; Some content here is derived from [CloudABI](https://github.com/NuxiNL/cloudabi).
;;
;; This is a `witx` file. See [here](https://github.com/WebAssembly/WASI/tree/master/docs/witx.md)
;; for an explanation of what that means.

(use "typenames.witx")

(module $wasi_ephemeral_sock
  ;;; Linear memory to be accessed by WASI functions that need it.
  (import "memory" (memory))

  ;;; Receive a message from a socket.
  ;;; Note: This is similar to `recv` in POSIX, though it also supports reading
  ;;; the data into multiple buffers in the manner of `readv`.
  (@interface func (export "recv")
    (param $fd $fd)
    ;;; List of scatter/gather vectors to which to store data.
    (param $ri_data $iovec_array)
    ;;; Message flags.
    (param $ri_flags $riflags)
    ;;; Number of bytes stored in ri_data and message flags.
    (result $error (expected (tuple $size $roflags) (error $errno)))
  )

  ;;; Send a message on a socket.
  ;;; Note: This is similar to `send` in POSIX, though it also supports writing
  ;;; the data from multiple buffers in the manner of `writev`.
  (@interface func (export "send")
    (param $fd $fd)
    ;;; List of scatter/gather vectors to which to retrieve data
    (param $si_data $ciovec_array)
    ;;; Message flags.
    (param $si_flags $siflags)
    ;;; Number of bytes transmitted.
    (result $error (expected $size (error $errno)))
  )

  ;;; Shut down socket send and receive channels.
  ;;; Note: This is similar to `shutdown` in POSIX.
  (@interface func (export "shutdown")
    (param $fd $fd)
    ;;; Which channels on the socket to shut down.
    (param $how $sdflags)
    (result $error (expected (error $errno)))
  )
)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
wasmtime-18.0.3 ./ext/cargo-vendor/wasi-common-18.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-17.0.1 ./ext/cargo-vendor/wasi-common-17.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-17.0.0 ./ext/cargo-vendor/wasi-common-17.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-16.0.0 ./ext/cargo-vendor/wasi-common-16.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-15.0.1 ./ext/cargo-vendor/wasi-common-15.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-15.0.0 ./ext/cargo-vendor/wasi-common-15.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-14.0.4 ./ext/cargo-vendor/wasi-common-14.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-14.0.3 ./ext/cargo-vendor/wasi-common-14.0.3/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-14.0.1 ./ext/cargo-vendor/wasi-common-14.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-14.0.0 ./ext/cargo-vendor/wasi-common-14.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-13.0.0 ./ext/cargo-vendor/wasi-common-13.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-12.0.1 ./ext/cargo-vendor/wasi-common-12.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-12.0.0 ./ext/cargo-vendor/wasi-common-12.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-11.0.0 ./ext/cargo-vendor/wasi-common-11.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-10.0.1 ./ext/cargo-vendor/wasi-common-10.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-10.0.0 ./ext/cargo-vendor/wasi-common-10.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-9.0.4 ./ext/cargo-vendor/wasi-common-9.0.4/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-9.0.1 ./ext/cargo-vendor/wasi-common-9.0.1/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-8.0.0 ./ext/cargo-vendor/wasi-common-8.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx
wasmtime-7.0.0 ./ext/cargo-vendor/wasi-common-7.0.0/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx