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