Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 559 for sockets (0.06 seconds)

  1. src/main/java/jcifs/smb/SmbTransportImpl.java

            do {
                this.socket = new Socket();
                if (this.localAddr != null) {
                    this.socket.bind(new InetSocketAddress(this.localAddr, this.localPort));
                }
                this.socket.connect(new InetSocketAddress(this.address.getHostAddress(), 139), tc.getConfig().getConnTimeout());
                this.socket.setSoTimeout(tc.getConfig().getSoTimeout());
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/SocketHandler.kt

     */
    package mockwebserver3
    
    import okio.Socket
    
    /**
     * Handles a call's request and response streams directly. Use this instead of [MockResponseBody] to
     * begin sending response data before all request data has been received.
     *
     * See [okhttp3.RequestBody.isDuplex].
     */
    public interface SocketHandler {
      public fun handle(socket: Socket)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jun 14 16:09:26 GMT 2025
    - 940 bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

        client
          .newCall(request)
          .execute()
          .use { response ->
            assertThat(response.code).isEqualTo(HTTP_SWITCHING_PROTOCOLS)
            val socket = response.socket!!
            socket.sink.buffer().use { sink ->
              socket.source.buffer().use { source ->
                sink.writeUtf8("client says hello\n")
                sink.flush()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  4. cmd/bucket-metadata-sys.go

    	return sys.initialized
    }
    
    // Loads bucket metadata for all buckets into BucketMetadataSys.
    func (sys *BucketMetadataSys) init(ctx context.Context, buckets []string) {
    	count := globalEndpoints.ESCount() * 10
    	for {
    		if len(buckets) < count {
    			sys.concurrentLoad(ctx, buckets)
    			break
    		}
    		sys.concurrentLoad(ctx, buckets[:count])
    		buckets = buckets[count:]
    	}
    
    	sys.Lock()
    	sys.initialized = true
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.4K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

      ): RealConnection {
        val result =
          RealConnection.newTestConnection(
            taskRunner = taskRunner,
            connectionPool = pool,
            route = route,
            socket = Socket(),
            idleAtNs = idleAtNanos,
          )
        result.withLock { pool.put(result) }
        return result
      }
    
      fun newConnectionPool(
        taskRunner: TaskRunner = this.taskRunner,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

      var writeBytesMaximum: Long = peerSettings.initialWindowSize.toLong()
        private set
    
      internal val socket: BufferedSocket = builder.socket
      val writer = Http2Writer(socket.sink, client)
    
      // Visible for testing
      val readerRunnable = ReaderRunnable(Http2Reader(socket.source, client))
    
      // Guarded by this.
      private val currentPushRequests = mutableSetOf<Int>()
    
      init {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

       * can return other values to test HTTP edge cases, such as unhappy socket policies or throttled
       * request bodies.
       */
      public open fun peek(): MockResponse = MockResponse()
    
      /**
       * Release any resources held by this dispatcher. Any requests that are currently being dispatched
       * should return immediately. Responses returned after shutdown will not be transmitted: their
       * socket connections have already been closed.
       */
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/rdma/RdmaProvider.java

         */
        Set<RdmaCapability> getSupportedCapabilities();
    
        /**
         * Create RDMA connection to remote endpoint
         *
         * @param remote remote socket address
         * @param local local socket address, may be null for auto-binding
         * @return new RDMA connection instance
         * @throws IOException if connection creation fails
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

        crossVersionBuckets: List<List<String>>,
        private val model: CIBuildModel,
    ) : FunctionalTestBucketProvider {
        private val buckets: List<BuildTypeBucket> = crossVersionBuckets.map { GradleVersionRangeCrossVersionTestBucket(it[0], it[1]) }
    
        // For quickFeedbackCrossVersion and allVersionsCrossVersion, the buckets are split by Gradle version
        // By default, split them by CROSS_VERSION_BUCKETS
        override fun createFunctionalTestsFor(
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Sep 24 08:38:33 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/witness/MockWitnessService.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.witness;
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
Back to Top