WasiHostNetworkOptions Class
The rules of a WasiHostNetwork: what the component can do on the network of the machine.
public sealed class WasiHostNetworkOptionsRemarks
By default, the component cannot use any address and cannot look up the names: give it only the access it needs.
Constructors
| Name | Description |
|---|---|
| WasiHostNetworkOptions() |
WasiHostNetworkOptions()
WasiHostNetwork.cspublic WasiHostNetworkOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| AddressCheck | Gets the check of the addresses that the component binds to, connects to and sends datagrams to, or null to deny every address. |
| AllowAll | Gets a check that allows every address. |
| AllowLoopback | Gets a check that allows the loopback addresses only (127.0.0.0/8 and ::1): the component cannot reach the other machines. |
| AllowNameLookup | Gets whether the component can look up host names (ip-name-lookup). The IP addresses written as names are always allowed: they are not looked up. |
| AllowTcp | Gets whether the component can create TCP sockets. The default is true. |
| AllowUdp | Gets whether the component can create UDP sockets. The default is true. |
AddressCheck
WasiHostNetwork.csGets the check of the addresses that the component binds to, connects to and sends datagrams to, or null to deny every address.
public WasiSocketAddressCheck? AddressCheck { get; init; }Property value
AllowAll
WasiHostNetwork.csGets a check that allows every address.
public static WasiSocketAddressCheck AllowAll { get; }Property value
AllowLoopback
WasiHostNetwork.csGets a check that allows the loopback addresses only (127.0.0.0/8 and ::1): the component cannot reach the other machines.
public static WasiSocketAddressCheck AllowLoopback { get; }