Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lookupPortMap (0.13 sec)

  1. src/net/port_unix.go

    				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. src/net/lookup_windows.go

    		return nil, newDNSError(mapErr(ctx.Err()), name, "")
    	}
    }
    
    func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {
    	if systemConf().mustUseGoResolver(r) {
    		return lookupPortMap(network, service)
    	}
    
    	// TODO(bradfitz): finish ctx plumbing
    	if err := acquireThread(ctx); err != nil {
    		return 0, &DNSError{
    			Name:      network + "/" + service,
    			Err:       mapErr(err).Error(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. src/net/lookup.go

    // "mobility-header", so we use that length, plus some slop in case
    // something longer is added in the future.
    const maxPortBufSize = len("mobility-header") + 10
    
    func lookupPortMap(network, service string) (port int, error error) {
    	switch network {
    	case "ip": // no hints
    		if p, err := lookupPortMapWithNetwork("tcp", "ip", service); err == nil {
    			return p, nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top