Source file
src/net/hook_windows.go
1
2
3
4
5 package net
6
7 import (
8 "internal/syscall/windows"
9 "syscall"
10 "time"
11 )
12
13 var (
14 testHookDialChannel = func() { time.Sleep(time.Millisecond) }
15
16
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
21 )
22
View as plain text