Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 613 for dial (0.05 sec)

  1. cni/pkg/pluginlistener/listener_test.go

    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    	conn, err := grpc.Dial(socket, opts...)
    	if err != nil {
    		return nil, err
    	}
    
    	return conn, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:32 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. pilot/test/xds/fake.go

    func (f *FakeDiscoveryServer) ConnectADS() *xds.AdsTest {
    	conn, err := grpc.Dial("buffcon",
    		grpc.WithTransportCredentials(insecure.NewCredentials()),
    		grpc.WithBlock(),
    		grpc.WithContextDialer(func(context.Context, string) (net.Conn, error) {
    			return f.BufListener.Dial()
    		}))
    	if err != nil {
    		f.t.Fatalf("failed to connect: %v", err)
    	}
    	return xds.NewAdsTest(f.t, conn)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. src/net/net.go

    primitives, most clients will need only the basic interface provided
    by the [Dial], [Listen], and Accept functions and the associated
    [Conn] and [Listener] interfaces. The crypto/tls package uses
    the same interfaces and similar Dial and Listen functions.
    
    The Dial function connects to a server:
    
    	conn, err := net.Dial("tcp", "golang.org:80")
    	if err != nil {
    		// handle error
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. internal/http/dial_others.go

    func setTCPParametersFn(opts TCPOptions) func(network, address string, c syscall.RawConn) error {
    	return func(network, address string, c syscall.RawConn) error {
    		return nil
    	}
    }
    
    // DialContext is a function to make custom Dial for internode communications
    type DialContext func(ctx context.Context, network, address string) (net.Conn, error)
    
    // NewInternodeDialContext configures a custom dialer for internode communications
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Apr 24 04:08:47 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/net/iprawsock_test.go

    		}
    		if len(priv.argLists) > 0 {
    			tests = append(tests, priv)
    		}
    	}
    
    	for _, tt := range tests {
    		for _, args := range tt.argLists {
    			_, err := Dial(args[0], args[1])
    			if tt.shouldFail != (err != nil) {
    				t.Errorf("Dial(%q, %q) = %v; want (err != nil) is %t", args[0], args[1], err, tt.shouldFail)
    			}
    			_, err = ListenPacket(args[0], args[1])
    			if tt.shouldFail != (err != nil) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. src/net/smtp/smtp.go

    	didHello   bool   // whether we've said HELO/EHLO
    	helloError error  // the error from the hello
    }
    
    // Dial returns a new [Client] connected to an SMTP server at addr.
    // The addr must include a port, as in "mail.example.com:smtp".
    func Dial(addr string) (*Client, error) {
    	conn, err := net.Dial("tcp", addr)
    	if err != nil {
    		return nil, err
    	}
    	host, _, _ := net.SplitHostPort(addr)
    	return NewClient(conn, host)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/net/conn_test.go

    			if err := ls.buildup(handler); err != nil {
    				t.Fatal(err)
    			}
    			if ls.Listener.Addr().Network() != network {
    				t.Fatalf("got %s; want %s", ls.Listener.Addr().Network(), network)
    			}
    
    			c, err := Dial(ls.Listener.Addr().Network(), ls.Listener.Addr().String())
    			if err != nil {
    				t.Fatal(err)
    			}
    			defer c.Close()
    			if c.LocalAddr().Network() != network || c.RemoteAddr().Network() != network {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go

    // Dialer knows how to open a streaming connection to a server.
    type Dialer interface {
    
    	// Dial opens a streaming connection to a server using one of the protocols
    	// specified (in order of most preferred to least preferred).
    	Dial(protocols ...string) (Connection, string, error)
    }
    
    // UpgradeRoundTripper is a type of http.RoundTripper that is able to upgrade
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    			string(got), err, expected)
    	}
    
    	// Slow client that should timeout.
    	t1 := time.Now()
    	conn, err := net.Dial("tcp", ts.Listener.Addr().String())
    	if err != nil {
    		return fmt.Errorf("Dial: %v", err)
    	}
    	buf := make([]byte, 1)
    	n, err := conn.Read(buf)
    	conn.Close()
    	latency := time.Since(t1)
    	if n != 0 || err != io.EOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    		if len(cfg.TLSClientConfig.ServerName) == 0 {
    			cfg.TLSClientConfig.ServerName = serverName
    		}
    
    		delegateDialer := cfg.Dial
    		if delegateDialer == nil {
    			var d net.Dialer
    			delegateDialer = d.DialContext
    		}
    		cfg.Dial = func(ctx context.Context, network, addr string) (net.Conn, error) {
    			if addr == host {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top