async_wasi::snapshots::preview_1::async_socket

Function sock_connect

Source
pub async fn sock_connect<M: Memory>(
    ctx: &mut WasiCtx,
    mem: &M,
    fd: __wasi_fd_t,
    addr_ptr: WasmPtr<__wasi_address_t>,
    port: u32,
) -> Result<(), Errno>