1
2
3
4
5
6
7 package poll
8
9 import "syscall"
10
11
12 func (fd *FD) SetsockoptIPMreq(level, name int, mreq *syscall.IPMreq) error {
13 if err := fd.incref(); err != nil {
14 return err
15 }
16 defer fd.decref()
17 return syscall.SetsockoptIPMreq(fd.Sysfd, level, name, mreq)
18 }
19
20
21 func (fd *FD) SetsockoptIPv6Mreq(level, name int, mreq *syscall.IPv6Mreq) error {
22 if err := fd.incref(); err != nil {
23 return err
24 }
25 defer fd.decref()
26 return syscall.SetsockoptIPv6Mreq(fd.Sysfd, level, name, mreq)
27 }
28
View as plain text