- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for SocksProxy (0.04 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt
/** * A limited implementation of SOCKS Protocol Version 5, intended to be similar to MockWebServer. * See [RFC 1928](https://www.ietf.org/rfc/rfc1928.txt). */ class SocksProxy { private val executor = Executors.newCachedThreadPool(threadFactory("SocksProxy")) private var serverSocket: ServerSocket? = null private val connectionCount = AtomicInteger() private val openSockets: MutableSet<Socket> = ConcurrentHashMap.newKeySet()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 7.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt
@RegisterExtension val clientTestRule = OkHttpClientTestRule() @StartStop private val server = MockWebServer() private val socksProxy = SocksProxy() @BeforeEach fun setUp() { socksProxy.play() } @AfterEach fun tearDown() { socksProxy.shutdown() } @Test fun proxy() { server.enqueue(MockResponse.Builder().body("abc").build())
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.6K bytes - Click Count (0)