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. 4 5package net 6 7import ( 8 "syscall" 9 "time" 10) 11 12var ( 13 testHookDialChannel = func() { time.Sleep(time.Millisecond) } // see golang.org/issue/5349 14 15 // Placeholders for socket system calls. 16 socketFunc func(int, int, int) (syscall.Handle, error) = syscall.Socket 17 connectFunc func(syscall.Handle, syscall.Sockaddr) error = syscall.Connect 18 listenFunc func(syscall.Handle, int) error = syscall.Listen 19) 20