Fix "PR c++/92804 ICE trying to use concept as a nested-name-specifier"
[official-gcc.git] / libgo / go / net / hook_windows.go
blobab8656cbbf343bdc6d720a7ce24d7a5f41172b7c
1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package net
7 import (
8 "internal/syscall/windows"
9 "syscall"
10 "time"
13 var (
14 testHookDialChannel = func() { time.Sleep(time.Millisecond) } // see golang.org/issue/5349
16 // Placeholders for socket system calls.
17 socketFunc func(int, int, int) (syscall.Handle, error) = syscall.Socket
18 wsaSocketFunc func(int32, int32, int32, *syscall.WSAProtocolInfo, uint32, uint32) (syscall.Handle, error) = windows.WSASocket
19 connectFunc func(syscall.Handle, syscall.Sockaddr) error = syscall.Connect
20 listenFunc func(syscall.Handle, int) error = syscall.Listen