Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Addrs (0.05 sec)

  1. internal/http/server_test.go

    		server := NewServer(testCase.addrs).
    			UseHandler(testCase.handler)
    		if testCase.certFn != nil {
    			server = server.UseTLSConfig(&tls.Config{
    				PreferServerCipherSuites: true,
    				GetCertificate:           testCase.certFn,
    			})
    		}
    		if server == nil {
    			t.Fatalf("Case %v: server: expected: <non-nil>, got: <nil>", (i + 1))
    		} else if !reflect.DeepEqual(server.Addrs, testCase.addrs) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/UniAddress.java

                throw new UnknownHostException();
            }
    
            if( isDotQuadIP( hostname )) {
                UniAddress[] addrs = new UniAddress[1];
                addrs[0] = new UniAddress( NbtAddress.getByName( hostname ));
                return addrs;
            }
    
            for( i = 0; i < resolveOrder.length; i++ ) {
                try {
                    switch( resolveOrder[i] ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 16.2K bytes
    - Viewed (0)
  3. internal/http/listener.go

    		tcpAddr.IP = ip
    	}
    
    	addr = tcpAddr
    	return addr
    }
    
    // Addrs - returns all address information of TCP listeners.
    func (listener *httpListener) Addrs() (addrs []net.Addr) {
    	for i := range listener.listeners {
    		addrs = append(addrs, listener.listeners[i].Addr())
    	}
    
    	return addrs
    }
    
    // TCPOptions specify customizable TCP optimizations on raw socket
    type TCPOptions struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/endpoint.go

    }
    
    func retrieveEndpointAddresses(ep *endpoint.LbEndpoint) []string {
    	addrs := []*core.Address{ep.GetEndpoint().GetAddress()}
    	for _, a := range ep.GetEndpoint().GetAdditionalAddresses() {
    		addrs = append(addrs, a.GetAddress())
    	}
    	result := make([]string, 0, len(addrs))
    	for _, addr := range addrs {
    		if addr := addr.GetSocketAddress(); addr != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 09:57:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            }
            synchronized ( this.addressCache ) {
                for ( int i = 0; i < addrs.length; i++ ) {
                    CacheEntry entry = this.addressCache.get(addrs[ i ].hostName);
                    if ( entry == null ) {
                        entry = new CacheEntry(addrs[ i ].hostName, addrs[ i ], expiration);
                        this.addressCache.put(addrs[ i ].hostName, entry);
                    }
                    else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 14 14:26:22 UTC 2022
    - 38.2K bytes
    - Viewed (0)
  6. internal/http/listener_test.go

    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		addrs := listener.Addrs()
    		addrSet := set.NewStringSet()
    		for _, addr := range addrs {
    			addrSet.Add(addr.String())
    		}
    
    		if !addrSet.Equals(testCase.expectedAddrs) {
    			t.Fatalf("Test %d: addr: expected = %v, got = %v", i+1, testCase.expectedAddrs, addrs)
    		}
    
    		listener.Close()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. internal/http/server.go

    func (srv *Server) UseTCPOptions(opts TCPOptions) *Server {
    	srv.TCPOptions = opts
    	return srv
    }
    
    // NewServer - creates new HTTP server using given arguments.
    func NewServer(addrs []string) *Server {
    	httpServer := &Server{
    		Addrs: addrs,
    	}
    	// This is not configurable for now.
    	httpServer.MaxHeaderBytes = DefaultMaxHeaderBytes
    	return httpServer
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. cni/pkg/repair/netns.go

    	if interfaces, err = net.Interfaces(); err != nil {
    		return false, fmt.Errorf("failed to get interfaces")
    	}
    
    	for _, ief := range interfaces {
    		var addrs []net.Addr
    		if addrs, err = ief.Addrs(); err != nil {
    			return
    		}
    		for _, addr := range addrs {
    			switch v := addr.(type) {
    			case *net.IPNet:
    				if v.IP.Equal(targetAddr) {
    					return true, nil
    				}
    			}
    		}
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/NbtAddress.java

                    if( entry == null ) {
                        entry = new CacheEntry( addrs[i].hostName, addrs[i], expiration );
                        ADDRESS_CACHE.put( addrs[i].hostName, entry );
                    } else {
                        entry.address = addrs[i];
                        entry.expiration = expiration;
                    }
                }
            }
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 30.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            Address[] addrs = tf.getNameServiceClient().getAllByName(name, true);
    
            if ( addrs == null || addrs.length == 0 ) {
                throw new UnknownHostException(name);
            }
    
            Arrays.sort(addrs, new Comparator<Address>() {
    
                @Override
                public int compare ( Address o1, Address o2 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
Back to top