|
@@ -7,7 +7,6 @@
|
|
|
package socket
|
|
package socket
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "errors"
|
|
|
|
|
"net"
|
|
"net"
|
|
|
"runtime"
|
|
"runtime"
|
|
|
"unsafe"
|
|
"unsafe"
|
|
@@ -36,29 +35,29 @@ func marshalInetAddr(ip net.IP, port int, zone string) []byte {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func parseInetAddr(b []byte, network string) (net.Addr, error) {
|
|
func parseInetAddr(b []byte, network string) (net.Addr, error) {
|
|
|
- return nil, errors.New("not implemented")
|
|
|
|
|
|
|
+ return nil, errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
|
|
func getsockopt(s uintptr, level, name int, b []byte) (int, error) {
|
|
|
- return 0, errors.New("not implemented")
|
|
|
|
|
|
|
+ return 0, errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func setsockopt(s uintptr, level, name int, b []byte) error {
|
|
func setsockopt(s uintptr, level, name int, b []byte) error {
|
|
|
- return errors.New("not implemented")
|
|
|
|
|
|
|
+ return errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
|
func recvmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
|
|
- return 0, errors.New("not implemented")
|
|
|
|
|
|
|
+ return 0, errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
|
func sendmsg(s uintptr, h *msghdr, flags int) (int, error) {
|
|
|
- return 0, errors.New("not implemented")
|
|
|
|
|
|
|
+ return 0, errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
|
func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
|
|
- return 0, errors.New("not implemented")
|
|
|
|
|
|
|
+ return 0, errNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
|
func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
|
|
|
- return 0, errors.New("not implemented")
|
|
|
|
|
|
|
+ return 0, errNotImplemented
|
|
|
}
|
|
}
|