Example #1
0
func (fs *FdSet) Set(fds ...int) {
	for _, fd := range fds {
		C.fdset(C.int(fd), fs.c())
	}
}
Example #2
0
func (fs *fdSet) Set(fds ...int) {
	for _, fd := range fds {
		C.fdset(C.int(fd), (*C.fd_set)(unsafe.Pointer(fs)))
	}
}