2018-01-11 22:38:50 +01:00
|
|
|
// Copyright 2017 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-02-20 18:55:58 +01:00
|
|
|
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
|
2020-11-06 07:43:29 +01:00
|
|
|
// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
|
2018-01-11 22:38:50 +01:00
|
|
|
|
|
|
|
package socket
|
|
|
|
|
2020-10-12 10:35:37 +02:00
|
|
|
import "net"
|
2018-01-11 22:38:50 +01:00
|
|
|
|
|
|
|
const (
|
|
|
|
sysAF_UNSPEC = 0x0
|
|
|
|
sysAF_INET = 0x2
|
|
|
|
sysAF_INET6 = 0xa
|
|
|
|
|
|
|
|
sysSOCK_RAW = 0x3
|
|
|
|
)
|
|
|
|
|
|
|
|
func marshalInetAddr(ip net.IP, port int, zone string) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func parseInetAddr(b []byte, network string) (net.Addr, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return nil, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return 0, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func setsockopt(s uintptr, level, name int, b []byte) error {
|
2019-03-01 18:44:37 +01:00
|
|
|
return errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return 0, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return 0, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return 0, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
2019-03-01 18:44:37 +01:00
|
|
|
return 0, errNotImplemented
|
2018-01-11 22:38:50 +01:00
|
|
|
}
|