Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AcceptFunc (0.25 sec)

  1. src/internal/poll/hook_unix.go

    //go:build unix || (js && wasm) || wasip1
    
    package poll
    
    import "syscall"
    
    // CloseFunc is used to hook the close call.
    var CloseFunc func(int) error = syscall.Close
    
    // AcceptFunc is used to hook the accept call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:17 UTC 2023
    - 447 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/poll/fd_windows.go

    	// Submit accept request.
    	o.handle = s
    	o.rsan = int32(unsafe.Sizeof(rawsa[0]))
    	_, err := execIO(o, func(o *operation) error {
    		return AcceptFunc(o.fd.Sysfd, o.handle, (*byte)(unsafe.Pointer(&rawsa[0])), 0, uint32(o.rsan), uint32(o.rsan), &o.qty, &o.o)
    	})
    	if err != nil {
    		CloseFunc(s)
    		return "acceptex", err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top