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