Lines Matching refs:network
4 interface network {
5 @unstable(feature = network-error-code)
8 /// An opaque resource that represents access to (a subset of) the network.
10 /// There is no need for this to map 1:1 to a physical network interface.
12 resource network;
66 …/// A bind operation failed because the provided address is not an address that the `network` can …
135 /// Attempts to extract a network-related `error-code` from the stream
141 /// network-related information about the error to return.
144 /// errors are network-related errors.
145 @unstable(feature = network-error-code)
146 network-error-code: func(err: borrow<error>) -> option<error-code>;
149 /// This interface provides a value-export of the default network handle..
151 interface instance-network {
153 use network.{network};
155 /// Get a handle to the default network.
157 instance-network: func() -> network;
165 use network.{network, error-code, ip-address};
213 …resolve-addresses: func(network: borrow<network>, name: string) -> result<resolve-address-stream, …
225 use network.{network, error-code, ip-socket-address, ip-address-family};
256 /// `network::error-code` type, TCP socket methods may always return
260 /// Bind the socket to a specific network on the provided IP address and port.
263 /// network interface(s) to bind to.
278 …/// - `address-not-bindable`: `local-address` is not an address that the `network` can bind t…
299 …start-bind: func(network: borrow<network>, local-address: ip-socket-address) -> result<_, error-co…
318 …argument`: The socket is already attached to a different network. The `network` passed to…
345 …start-connect: func(network: borrow<network>, remote-address: ip-socket-address) -> result<_, erro…
589 use network.{network, error-code, ip-address-family};
598 …/// This function does not require a network capability handle. This is considered to be safe beca…
599 …/// at time of creation, the socket is not bound to any `network` yet. Up to the moment `bind`/`co…
622 use network.{network, error-code, ip-socket-address, ip-address-family};
657 /// Bind the socket to a specific network on the provided IP address and port.
660 /// network interface(s) to bind to.
668 …/// - `address-not-bindable`: `local-address` is not an address that the `network` can bind t…
684 …start-bind: func(network: borrow<network>, local-address: ip-socket-address) -> result<_, error-co…
689 …/// This function only changes the local socket configuration and does not generate any network tr…
691 /// based on the best network path to `remote-address`.
897 use network.{network, error-code, ip-address-family};
906 …/// This function does not require a network capability handle. This is considered to be safe beca…
907 …/// at time of creation, the socket is not bound to any `network` yet. Up to the moment `bind` is …
930 import network;
932 import instance-network;