Source file
src/net/sockopt_stub.go
1
2
3
4
5
6
7 package net
8
9 import "syscall"
10
11 func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
12 return nil
13 }
14
15 func setDefaultListenerSockopts(s int) error {
16 return nil
17 }
18
19 func setDefaultMulticastSockopts(s int) error {
20 return nil
21 }
22
23 func setReadBuffer(fd *netFD, bytes int) error {
24 return syscall.ENOPROTOOPT
25 }
26
27 func setWriteBuffer(fd *netFD, bytes int) error {
28 return syscall.ENOPROTOOPT
29 }
30
31 func setKeepAlive(fd *netFD, keepalive bool) error {
32 return syscall.ENOPROTOOPT
33 }
34
35 func setLinger(fd *netFD, sec int) error {
36 return syscall.ENOPROTOOPT
37 }
38
View as plain text