Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sock_accept (0.09 sec)

  1. src/syscall/net_wasip1.go

    package syscall
    
    import "unsafe"
    
    const (
    	SHUT_RD   = 0x1
    	SHUT_WR   = 0x2
    	SHUT_RDWR = SHUT_RD | SHUT_WR
    )
    
    type sdflags = uint32
    
    //go:wasmimport wasi_snapshot_preview1 sock_accept
    //go:noescape
    func sock_accept(fd int32, flags fdflags, newfd unsafe.Pointer) Errno
    
    //go:wasmimport wasi_snapshot_preview1 sock_shutdown
    //go:noescape
    func sock_shutdown(fd int32, flags sdflags) Errno
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/net/fd_fake.go

    	isConnected bool // handshake completed or use of association with peer
    	net         string
    	laddr       Addr
    	raddr       Addr
    
    	// The only networking available in WASI preview 1 is the ability to
    	// sock_accept on a pre-opened socket, and then fd_read, fd_write,
    	// fd_close, and sock_shutdown on the resulting connection. We
    	// intercept applicable netFD calls on this instance, and then pass
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top