This interface provides a value-export of the default network handle..
Types
use resource networksince 0.2.0
from wasi:sockets/network@0.2.6
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
instance-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;
}