Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for dlopen (0.06 sec)

  1. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that the isOpen method returns true for an open handle.
             */
            @Test
            public void testIsOpen_ReturnsTrueWhenOpen() {
                when(smbPipeHandle.isOpen()).thenReturn(true);
                assertTrue(smbPipeHandle.isOpen(), "isOpen() should return true when the handle is open.");
            }
    
            /**
             * Verifies that the isOpen method returns false for a closed handle.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        @DisplayName("isOpen delegates to handle.isOpen")
        void isOpen_delegates(boolean state) throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            when(handle.isOpen()).thenReturn(state);
    
            // Act
            boolean result = out.isOpen();
    
            // Assert
            assertEquals(state, result, "isOpen should reflect handle state");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeOutputStream.java

            super(handle.getPipe(), th, null, 0, 0, 0);
            this.handle = handle;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbFileOutputStream#isOpen()
         */
        @Override
        public boolean isOpen() {
            return this.handle.isOpen();
        }
    
        @Override
        protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
            return this.handle.ensureTreeConnected();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

      }
    
      // TODO(jwilson): can I read the response body? Do I have to?
      //                the body from slack is a 0-byte-buffer
      @Override public synchronized void onOpen(WebSocket webSocket, Response response) {
        System.out.println("onOpen: " + response);
      }
    
      // TOOD(jwilson): decode incoming messages and dispatch them somewhere.
      @Override public void onMessage(WebSocket webSocket, String text) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Nov 19 20:16:58 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt

        this.delegate = delegate
      }
    
      override fun onOpen(
        webSocket: WebSocket,
        response: Response,
      ) {
        Platform.get().log("[WS $name] onOpen", Platform.INFO, null)
        val delegate = delegate
        if (delegate != null) {
          this.delegate = null
          delegate.onOpen(webSocket, response)
        } else {
          events.add(Open(webSocket, response))
        }
      }
    
      override fun onMessage(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      private val events = LinkedBlockingDeque<Any>()
      private var cancel = false
    
      fun enqueueCancel() {
        cancel = true
      }
    
      override fun onOpen(
        eventSource: EventSource,
        response: Response,
      ) {
        get().log("[ES] onOpen", Platform.INFO, null)
        events.add(Open(eventSource, response))
        drainCancelQueue(eventSource)
      }
    
      override fun onEvent(
        eventSource: EventSource,
        id: String?,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:32:52 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. docs/sts/client_grants/__init__.py

                headers['authorization'] = urllib3.make_headers(
                    basic_auth='%s:%s' % (self.cid, self.csec))['authorization']
    
                response = self._http.urlopen('POST', self.idp_ep,
                                              body="grant_type=client_credentials",
                                              headers=headers,
                                              preload_content=True,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            when(smbFile.isFile()).thenReturn(true);
            when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt");
            when(smbFile.isOpen()).thenReturn(true);
    
            // Mock the open method to do nothing
            doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt());
    
            smbRandomAccessFile = new SmbRandomAccessFile(smbFile, "rw");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. .github/workflows/stale-issues.yml

              stale-issue-message: > 
                This issue is stale because it has been open for 7 days with no activity.
                It will be closed if no further activity occurs. Thank you.
              close-issue-message: >
                This issue was closed because it has been inactive for 7 days since being marked as stale.
                Please reopen if you'd like to work on this further.
              days-before-pr-stale: 14
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Sat Feb 01 08:42:17 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        client.newWebSocket(request, this);
    
        // Trigger shutdown of the dispatcher's executor so this process exits immediately.
        client.dispatcher().executorService().shutdown();
      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Apr 04 11:40:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top