Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,329 for connectTo (0.19 sec)

  1. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/internal/hub/MessageHubIntegrationTest.groovy

                hub.addHandler(channel, handler)
            }
    
            def connectTo(Participant other) {
                def connector = new TestConnector()
                hub.addConnection(connector.connectionA)
                other.hub.addConnection(connector.connectionB)
            }
    
            def stop() {
                hub.stop()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Connection.kt

     */
    interface Connection {
      /** Returns the route used by this connection. */
      fun route(): Route
    
      /**
       * Returns the socket that this connection is using. Returns an
       * [SSL socket][javax.net.ssl.SSLSocket] if this connection is HTTPS. If this is an HTTP/2
       * connection the socket may be shared by multiple concurrent calls.
       */
      fun socket(): Socket
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go

    	"net/http"
    	"sync"
    	"time"
    
    	"github.com/moby/spdystream"
    	"k8s.io/apimachinery/pkg/util/httpstream"
    	"k8s.io/klog/v2"
    )
    
    // connection maintains state about a spdystream.Connection and its associated
    // streams.
    type connection struct {
    	conn             *spdystream.Connection
    	streams          map[uint32]httpstream.Stream
    	streamLock       sync.Mutex
    	newStreamHandler httpstream.NewStreamHandler
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 15:04:07 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  4. pkg/test/loadbalancersim/network/connection.go

    }
    
    func (c *connection) Name() string {
    	return c.helper.Name()
    }
    
    func (c *connection) TotalRequests() uint64 {
    	return c.helper.TotalRequests()
    }
    
    func (c *connection) ActiveRequests() uint64 {
    	return c.helper.ActiveRequests()
    }
    
    func (c *connection) Latency() *timeseries.Instance {
    	return c.helper.Latency()
    }
    
    func (c *connection) Request(onDone func()) {
    	c.helper.Request(c.request, onDone)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

            }
    
            // Wait for an in-flight connect to complete or fail.
            if (connectResult == null) {
              connectResult = awaitTcpConnect(awaitTimeoutNanos, TimeUnit.NANOSECONDS) ?: continue
            }
    
            if (connectResult.isSuccess) {
              // We have a connected TCP connection. Cancel and defer the racing connects that all lost.
              cancelInFlightConnects()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/Connection.java

     * <li>should allow stopping or requesting stopping from a different thread than receiving/dispatching</li>
     * <li>don't guarantee allowing multiple threads dispatching</li>
     * </ul>
     */
    public interface Connection<T> extends Dispatch<T>, Receive<T>, Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonConnector.java

    import org.gradle.launcher.daemon.context.DaemonContext;
    
    import javax.annotation.Nullable;
    
    /**
     * A daemon connector establishes a connection to a daemon.
     */
    public interface DaemonConnector {
    
        /**
         * Attempts to connect to a daemon at the given address.
         *
         * @return A connection to a matching daemon, or null if not running.
         */
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.5K bytes
    - Viewed (1)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DefaultDaemonConnectorTest.groovy

            expect:
            def connection = connector.maybeConnect({it.pid == 1} as DummyExplainingSpec)
            connection && connection.connection.num == 1
        }
    
        def "connect() returns connection to any existing daemon that matches spec"() {
            given:
            startIdleDaemon()
            startIdleDaemon()
    
            expect:
            def connection = connector.connect({it.pid < 12} as ExplainingSpec)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/toolingApi/runBuild/groovy/src/main/java/org/gradle/sample/Main.java

            // Configure the connector and create the connection
            GradleConnector connector = GradleConnector.newConnector();
    
            if (args.length > 0) {
                connector.useInstallation(new File(args[0]));
                if (args.length > 1) {
                    connector.useGradleUserHomeDir(new File(args[1]));
                }
            }
    
            connector.forProjectDirectory(new File("."));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/toolingApi/model/groovy/src/main/java/org/gradle/sample/Main.java

            // Configure the connector and create the connection
            GradleConnector connector = GradleConnector.newConnector();
    
            if (args.length > 0) {
                connector.useInstallation(new File(args[0]));
                if (args.length > 1) {
                    connector.useGradleUserHomeDir(new File(args[1]));
                }
            }
    
            connector.forProjectDirectory(new File("."));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top