github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/syscall/unix/net_js.go (about)

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build js
     6  
     7  package unix
     8  
     9  import (
    10  	"github.com/shogo82148/std/syscall"
    11  )
    12  
    13  func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error)
    14  
    15  func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error)
    16  
    17  func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error)
    18  
    19  func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error)
    20  
    21  func SendmsgNInet4(fd int, p, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error)
    22  
    23  func SendmsgNInet6(fd int, p, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error)
    24  
    25  func RecvmsgInet4(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet4) (n, oobn int, recvflags int, err error)
    26  
    27  func RecvmsgInet6(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet6) (n, oobn int, recvflags int, err error)