func canUseConnectEx(net string) bool { if net == "udp" || net == "udp4" || net == "udp6" { // ConnectEx windows API does not support connectionless sockets. return false } return syscall.LoadConnectEx() == nil }
func canUseConnectEx(net string) bool { switch net { case "udp", "udp4", "udp6", "ip", "ip4", "ip6": // ConnectEx windows API does not support connectionless sockets. return false } return syscall.LoadConnectEx() == nil }