Source file
src/net/rawconn_stub_test.go
1
2
3
4
5
6
7 package net
8
9 import (
10 "errors"
11 "syscall"
12 )
13
14 func readRawConn(c syscall.RawConn, b []byte) (int, error) {
15 return 0, errors.New("not supported")
16 }
17
18 func writeRawConn(c syscall.RawConn, b []byte) error {
19 return errors.New("not supported")
20 }
21
22 func controlRawConn(c syscall.RawConn, addr Addr) error {
23 return errors.New("not supported")
24 }
25
26 func controlOnConnSetup(network string, address string, c syscall.RawConn) error {
27 return nil
28 }
29
View as plain text