- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for AcceptFunc (0.31 sec)
-
src/internal/poll/hook_unix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:17 UTC 2023 - 447 bytes - Viewed (0) -
src/net/main_windows_test.go
origConnectEx = poll.ConnectExFunc origListen = listenFunc origAccept = poll.AcceptFunc ) func installTestHooks() { wsaSocketFunc = sw.WSASocket poll.CloseFunc = sw.Closesocket connectFunc = sw.Connect poll.ConnectExFunc = sw.ConnectEx listenFunc = sw.Listen poll.AcceptFunc = sw.AcceptEx } func uninstallTestHooks() { wsaSocketFunc = origWSASocket
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:36:30 UTC 2023 - 1K bytes - Viewed (0) -
src/net/main_unix_test.go
origListen = listenFunc origAccept = poll.AcceptFunc origGetsockoptInt = getsockoptIntFunc extraTestHookInstallers []func() extraTestHookUninstallers []func() ) func installTestHooks() { socketFunc = sw.Socket poll.CloseFunc = sw.Close connectFunc = sw.Connect listenFunc = sw.Listen poll.AcceptFunc = sw.Accept getsockoptIntFunc = sw.GetsockoptInt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 1.2K bytes - Viewed (0) -
src/internal/poll/hook_windows.go
package poll import "syscall" // CloseFunc is used to hook the close call. var CloseFunc func(syscall.Handle) error = syscall.Closesocket // AcceptFunc is used to hook the accept call. var AcceptFunc func(syscall.Handle, syscall.Handle, *byte, uint32, uint32, uint32, *uint32, *syscall.Overlapped) error = syscall.AcceptEx // ConnectExFunc is used to hook the ConnectEx call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 07 21:54:36 UTC 2017 - 668 bytes - Viewed (0) -
src/internal/poll/sys_cloexec.go
// because we have put fd.sysfd into non-blocking mode. // However, a call to the File method will put it back into // blocking mode. We can't take that risk, so no use of ForkLock here. ns, sa, err := AcceptFunc(s) if err == nil { syscall.CloseOnExec(ns) } if err != nil { return -1, nil, "accept", err } if err = syscall.SetNonblock(ns, true); err != nil { CloseFunc(ns) return -1, nil, "setnonblock", err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:17 UTC 2023 - 1.1K bytes - Viewed (0) -
src/internal/poll/sock_cloexec_solaris.go
// because we have put fd.sysfd into non-blocking mode. // However, a call to the File method will put it back into // blocking mode. We can't take that risk, so no use of ForkLock here. ns, sa, err := AcceptFunc(s) if err == nil { syscall.CloseOnExec(ns) } if err != nil { return -1, nil, "accept", err } if err = syscall.SetNonblock(ns, true); err != nil { CloseFunc(ns) return -1, nil, "setnonblock", err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.5K bytes - Viewed (0) -
src/internal/poll/sock_cloexec_accept.go
// because we have put fd.sysfd into non-blocking mode. // However, a call to the File method will put it back into // blocking mode. We can't take that risk, so no use of ForkLock here. ns, sa, err = AcceptFunc(s) if err == nil { syscall.CloseOnExec(ns) } if err != nil { return -1, nil, "accept", err } if err = syscall.SetNonblock(ns, true); err != nil { CloseFunc(ns) return -1, nil, "setnonblock", err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 03:40:42 UTC 2022 - 1.8K bytes - Viewed (0)