Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ConnectEx (0.32 sec)

  1. src/net/fd_windows.go

    	}
    
    	// Call ConnectEx API.
    	if err := fd.pfd.ConnectEx(ra); err != nil {
    		select {
    		case <-ctx.Done():
    			return nil, mapErr(ctx.Err())
    		default:
    			if _, ok := err.(syscall.Errno); ok {
    				err = os.NewSyscallError("connectex", err)
    			}
    			return nil, err
    		}
    	}
    	// Refresh socket properties.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/net/internal/socktest/sys_windows.go

    		return so.Err
    	}
    	sw.stats.getLocked(so.Cookie).Connected++
    	return nil
    }
    
    // ConnectEx wraps [syscall.ConnectEx].
    func (sw *Switch) ConnectEx(s syscall.Handle, sa syscall.Sockaddr, b *byte, n uint32, nwr *uint32, o *syscall.Overlapped) (err error) {
    	so := sw.sockso(s)
    	if so == nil {
    		return syscall.ConnectEx(s, sa, b, n, nwr, o)
    	}
    	sw.fmu.RLock()
    	f, _ := sw.fltab[FilterConnect]
    	sw.fmu.RUnlock()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/internal/poll/hook_windows.go

    // 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)
  4. src/net/main_windows_test.go

    	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
    	poll.CloseFunc = origClosesocket
    	connectFunc = origConnect
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:36:30 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. src/net/internal/socktest/switch.go

    	}
    	return s
    }
    
    // A FilterType represents a filter type.
    type FilterType int
    
    const (
    	FilterSocket        FilterType = iota // for Socket
    	FilterConnect                         // for Connect or ConnectEx
    	FilterListen                          // for Listen
    	FilterAccept                          // for Accept, Accept4 or AcceptEx
    	FilterGetsockoptInt                   // for GetsockoptInt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top