github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/net/internal/socket/sys_stub.go (about)

     1  // Copyright 2017 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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
     6  // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
     7  
     8  package socket
     9  
    10  import "net"
    11  
    12  const (
    13  	sysAF_UNSPEC = 0x0
    14  	sysAF_INET   = 0x2
    15  	sysAF_INET6  = 0xa
    16  
    17  	sysSOCK_RAW = 0x3
    18  
    19  	sizeofSockaddrInet4 = 0x10
    20  	sizeofSockaddrInet6 = 0x1c
    21  )
    22  
    23  func marshalInetAddr(ip net.IP, port int, zone string) []byte {
    24  	return nil
    25  }
    26  
    27  func parseInetAddr(b []byte, network string) (net.Addr, error) {
    28  	return nil, errNotImplemented
    29  }
    30  
    31  func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
    32  	return 0, errNotImplemented
    33  }
    34  
    35  func setsockopt(s uintptr, level, name int, b []byte) error {
    36  	return errNotImplemented
    37  }
    38  
    39  func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
    40  	return 0, errNotImplemented
    41  }
    42  
    43  func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
    44  	return 0, errNotImplemented
    45  }
    46  
    47  func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
    48  	return 0, errNotImplemented
    49  }
    50  
    51  func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
    52  	return 0, errNotImplemented
    53  }