select_windows.go 423 B

12345678910111213
  1. // +build windows
  2. package goselect
  3. import "syscall"
  4. //sys _select(nfds int, readfds *FDSet, writefds *FDSet, exceptfds *FDSet, timeout *syscall.Timeval) (total int, err error) = ws2_32.select
  5. //sys __WSAFDIsSet(handle syscall.Handle, fdset *FDSet) (isset int, err error) = ws2_32.__WSAFDIsSet
  6. func sysSelect(n int, r, w, e *FDSet, timeout *syscall.Timeval) error {
  7. _, err := _select(n, r, w, e, timeout)
  8. return err
  9. }