Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createServerSocket (0.09 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt

      @Throws(IOException::class)
      override fun createServerSocket(): ServerSocket {
        val serverSocket = delegate.createServerSocket()
        return configureServerSocket(serverSocket)
      }
    
      @Throws(IOException::class)
      override fun createServerSocket(port: Int): ServerSocket {
        val serverSocket = delegate.createServerSocket(port)
        return configureServerSocket(serverSocket)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

        }
      }
    
      private fun startTlsServer(): InetSocketAddress {
        val serverSocketFactory = ServerSocketFactory.getDefault()
        serverSocket = serverSocketFactory.createServerSocket()
        val serverAddress = InetAddress.getByName("localhost")
        serverSocket!!.bind(InetSocketAddress(serverAddress, 0), 50)
        return InetSocketAddress(serverAddress, serverSocket!!.localPort)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        check(!shutdown) { "shutdown() already called" }
        if (started) return
        started = true
    
        this._inetSocketAddress = inetSocketAddress
    
        serverSocket = serverSocketFactory!!.createServerSocket()
    
        // Reuse if the user specified a port
        serverSocket!!.reuseAddress = inetSocketAddress.port != 0
        serverSocket!!.bind(inetSocketAddress, 50)
    
        portField = serverSocket!!.localPort
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top