func ioComplete(flags int, operr error) bool {
	if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
		return false
	}
	return true
}
ioComplete checks the flags and result of a syscall, to be used as return
value in a syscall.RawConn.Read or Write callback.
package socket
import (
	"syscall"
)