1// Copyright 2017 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 poll
6
7import "syscall"
8
9// CloseFunc is used to hook the close call.
10var CloseFunc func(syscall.Handle) error = syscall.Closesocket
11
12// AcceptFunc is used to hook the accept call.
13var AcceptFunc func(syscall.Handle, syscall.Handle, *byte, uint32, uint32, uint32, *uint32, *syscall.Overlapped) error = syscall.AcceptEx
14
15// ConnectExFunc is used to hook the ConnectEx call.
16var ConnectExFunc func(syscall.Handle, syscall.Sockaddr, *byte, uint32, *uint32, *syscall.Overlapped) error = syscall.ConnectEx
17