Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for lookupPort (0.14 sec)

  1. src/net/port_unix.go

    			services[netw] = m
    		}
    		for i := 0; i < len(f); i++ {
    			if i != 1 { // f[1] was port/net
    				m[f[i]] = port
    			}
    		}
    	}
    }
    
    // goLookupPort is the native Go implementation of LookupPort.
    func goLookupPort(network, service string) (port int, err error) {
    	onceReadServices.Do(readServices)
    	return lookupPortMap(network, service)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/apis/kubeadm/apiendpoint.go

    	}
    	if netutils.ParseIPSloppy(apiEndpointHost) == nil {
    		return APIEndpoint{}, errors.Errorf("invalid API endpoint IP: %s", apiEndpointHost)
    	}
    	apiEndpointPort, err := net.LookupPort("tcp", apiEndpointPortStr)
    	if err != nil {
    		return APIEndpoint{}, errors.Wrapf(err, "invalid advertise address endpoint port: %s", apiEndpointPortStr)
    	}
    	return APIEndpoint{
    		AdvertiseAddress: apiEndpointHost,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 08:42:09 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. src/net/lookup_unix.go

    	if order == hostLookupCgo {
    		return cgoLookupIP(ctx, network, host)
    	}
    	ips, _, err := r.goLookupIPCNAMEOrder(ctx, network, host, order, conf)
    	return ips, err
    }
    
    func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {
    	// Port lookup is not a DNS operation.
    	// Prefer the cgo resolver if possible.
    	if !systemConf().mustUseGoResolver(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/net/ipsock.go

    	)
    	switch net {
    	case "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6":
    		if addr != "" {
    			if host, port, err = SplitHostPort(addr); err != nil {
    				return nil, err
    			}
    			if portnum, err = r.LookupPort(ctx, net, port); err != nil {
    				return nil, err
    			}
    		}
    	case "ip", "ip4", "ip6":
    		if addr != "" {
    			host = addr
    		}
    	default:
    		return nil, UnknownNetworkError(net)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. internal/http/dial_dnscache.go

    	"context"
    	"net"
    	"time"
    )
    
    // LookupHost is a function to make custom lookupHost for optional cached DNS requests
    type LookupHost func(ctx context.Context, host string) (addrs []string, err error)
    
    // DialContextWithLookupHost is a helper function which returns `net.DialContext` function.
    // It randomly fetches an IP via custom LookupHost function and dials it by the given dial
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 03 19:30:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. cmd/grid.go

    	hosts, local := eps.GridHosts()
    	lookupHost := globalDNSCache.LookupHost
    	g, err := grid.NewManager(ctx, grid.ManagerOptions{
    		// Pass Dialer for websocket grid, make sure we do not
    		// provide any DriveOPTimeout() function, as that is not
    		// useful over persistent connections.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. internal/http/transports.go

    )
    
    // ConnSettings - contains connection settings.
    type ConnSettings struct {
    	DialContext DialContext // Custom dialContext, DialTimeout is ignored if this is already setup.
    	LookupHost  LookupHost  // Custom lookupHost, is nil on containerized deployments.
    	DialTimeout time.Duration
    
    	// TLS Settings
    	RootCAs          *x509.CertPool
    	CipherSuites     []uint16
    	CurvePreferences []tls.CurveID
    
    	// HTTP2
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/net.go

    			ipList.Add(ip.String())
    		}
    	}
    	return
    }
    
    // getHostIP returns IP address of given host.
    func getHostIP(host string) (ipList set.StringSet, err error) {
    	addrs, err := globalDNSCache.LookupHost(GlobalContext, host)
    	if err != nil {
    		return ipList, err
    	}
    
    	ipList = set.NewStringSet()
    	for _, addr := range addrs {
    		ipList.Add(addr)
    	}
    
    	return ipList, err
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top