Source file
src/internal/poll/sockopt_windows.go
1
2
3
4
5 package poll
6
7 import "syscall"
8
9
10 func (fd *FD) Setsockopt(level, optname int32, optval *byte, optlen int32) error {
11 if err := fd.incref(); err != nil {
12 return err
13 }
14 defer fd.decref()
15 return syscall.Setsockopt(fd.Sysfd, level, optname, optval, optlen)
16 }
17
18
19 func (fd *FD) WSAIoctl(iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *syscall.Overlapped, completionRoutine uintptr) error {
20 if err := fd.incref(); err != nil {
21 return err
22 }
23 defer fd.decref()
24 return syscall.WSAIoctl(fd.Sysfd, iocc, inbuf, cbif, outbuf, cbob, cbbr, overlapped, completionRoutine)
25 }
26
View as plain text