Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AcceptFunc (0.08 sec)

  1. 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)
  2. 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)
  3. 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