componentized/directory

wasi:sockets

interface dependency

A WASI API for TCP & UDP sockets and domain name lookup.

interface instance-network wasi:sockets/instance-network@0.2.3 since 0.2.0

This interface provides a value-export of the default network handle..

Types

use resource networksince 0.2.0

from wasi:sockets/network@0.2.3

An opaque resource that represents access to (a subset of) the network. This enables context-based security for networking. There is no need for this to map 1:1 to a physical network interface.

Functions

functioninstance-network: func() -> networksince 0.2.0

Get a handle to the default network.

WIT

/// This interface provides a value-export of the default network handle..
@since(version = 0.2.0)
interface instance-network {
  @since(version = 0.2.0)
  use network.{network};

  /// Get a handle to the default network.
  @since(version = 0.2.0)
  instance-network: func() -> network;
}