Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 613 for Bucket (0.04 sec)

  1. src/main/java/jcifs/netbios/SessionRequestPacket.java

     */
    
    package jcifs.netbios;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    import jcifs.Configuration;
    import jcifs.NetbiosName;
    
    /**
     * NetBIOS session request packet implementation.
     * This packet is used to initiate NetBIOS session connections.
     */
    public class SessionRequestPacket extends SessionServicePacket {
    
        private final Name calledName, callingName;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

    import okio.asOkioSocket
    import okio.buffer
    
    /**
     * Adapts a [java.net.Socket] to MockWebServer's needs.
     *
     * Note that [asOkioSocket] returns a socket that closes the underlying [java.net.Socket] when both
     * of its component streams are closed. This class takes advantage of that.
     */
    internal class MockWebServerSocket(
      val javaNetSocket: Socket,
    ) : Closeable,
      BufferedSocket {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. 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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 940 bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.nameTrnId = 0x1234;
            packet.isResponse = true;
            packet.opCode = NameServicePacket.QUERY;
            packet.isAuthAnswer = true;
            packet.isTruncated = true;
            packet.isRecurDesired = true;
            packet.isRecurAvailable = true;
            packet.isBroadcast = true;
            packet.resultCode = NameServicePacket.FMT_ERR;
            packet.questionCount = 1;
            packet.answerCount = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        void testConstructorWithConfigOnly() {
            SessionRequestPacket packet = new SessionRequestPacket(mockConfig);
    
            assertNotNull(packet);
            // The packet should have calledName and callingName initialized but empty
            byte[] dst = new byte[256];
            int written = packet.writeTrailerWireFormat(dst, 0);
            assertTrue(written > 0);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt

        val attempt1 = attempt0.nextConnectionSpec(connectionSpecs, socket)
        assertThat(attempt1).isNotNull()
        assertThat(attempt1!!.isTlsFallback).isTrue()
        socket.close()
    
        // COMPATIBLE_TLS is used here.
        socket = createSocketWithEnabledProtocols(*enabledSocketTlsVersions)
        connectionSpecs[attempt1.connectionSpecIndex].apply(socket, attempt1.isTlsFallback)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt

        applyConnectionSpec(connectionSpec, socket, false)
        assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites)
      }
    
      @Test
      fun applyIntersectionRetainsSslPrefixes() {
        val socket = FakeSslSocket()
        socket.enabledProtocols = arrayOf("TLSv1")
        socket.supportedCipherSuites =
          arrayOf("TLS_A", "TLS_B", "TLS_C", "TLS_D", "TLS_E")
        socket.enabledCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

            this.headers = headers.newBuilder()
          }
    
        open fun body(body: ResponseBody) =
          apply {
            this.body = body
          }
    
        open fun socket(socket: Socket) =
          apply {
            this.socket = socket
          }
    
        open fun networkResponse(networkResponse: Response?) =
          apply {
            checkSupportResponse("networkResponse", networkResponse)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java

            }
    
            @Test
            @DisplayName("All RPC packet flags should have unique values")
            void testRpcPacketFlagsUniqueness() {
                // Verify that RPC packet flags are unique and follow bit pattern
                assertEquals(1, Integer.bitCount(DcerpcConstants.RPC_C_PF_BROADCAST), "RPC_C_PF_BROADCAST should be a single bit");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        // No TLS extensions if the socket class is custom.
        if (matchesSocket(sslSocket)) {
          try {
            // Enable session tickets.
            setUseSessionTickets.invoke(sslSocket, true)
    
            // Assume platform support on 24+
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top