- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for createServerSocket (0.1 sec)
-
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) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainServerSocketFactory.java
} @Override public ServerSocket createServerSocket() throws IOException { return new UnixDomainServerSocket(); } @Override public ServerSocket createServerSocket(int port) throws IOException { return createServerSocket(); } @Override public ServerSocket createServerSocket(int port, int backlog) throws IOException { return createServerSocket(); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Feb 12 16:33:52 UTC 2019 - 3.1K bytes - Viewed (0) -
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) -
src/test/java/jcifs/tests/TimeoutTest.java
public void testConnectTimeoutRead () throws IOException { Set<Thread> threadsBefore = new HashSet<>(Thread.getAllStackTraces().keySet()); try ( ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(0, -1, InetAddress.getLoopbackAddress()) ) { int port = ss.getLocalPort(); InetAddress addr = ss.getInetAddress(); long start = System.currentTimeMillis();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 12.4K bytes - Viewed (0) -
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)