Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for peekKey (0.04 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

         * Reads and returns the key of the next message without consuming it.
         *
         * @return the request key of the next message
         * @throws IOException if an I/O error occurs
         */
        protected abstract Request peekKey() throws IOException;
    
        /**
         * Sends a request to the remote endpoint.
         *
         * @param request the request to send
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/transport/Transport.java

                    synchronized (this.inLock) {
                        final Long peekKey = peekKey();
                        if (peekKey == firstKey) {
                            doRecv(response);
                            response.received();
                            return response;
                        }
                        doSkip(peekKey);
                    }
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                out.write(sbuf, 0, 4 + n);
                out.flush();
                /* Note the Transport thread isn't running yet so we can
                 * read from the socket here.
                 */
                if (peekKey() == null) { /* try to read header */
                    throw new IOException("transport closed in negotiate");
                }
                final int size = Encdec.dec_uint16be(sbuf, 2) & 0xFFFF;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportTest.java

            @Override
            protected long makeKey(Request request) throws IOException {
                return nextKey++;
            }
    
            @Override
            protected Long peekKey() throws IOException {
                if (recvException != null) {
                    throw recvException;
                }
                return peekedKey;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

             * read from the socket here.
             */
            try {
                this.socket.setSoTimeout(this.transportContext.getConfig().getConnTimeout());
                if (peekKey() == null) { /* try to read header */
                    throw new IOException("transport closed in negotiate");
                }
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponse.java

         * Gets the length of the first message in the pipe
         * @return the messageLength
         */
        public int getMessageLength() {
            return this.messageLength;
        }
    
        /**
         * Gets the data peeked from the pipe
         * @return the data
         */
        public byte[] getData() {
            return this.data;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see Decodable#decode(byte[], int, int)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(smb2);
            return new SmbPipeInputStream(handle, tree);
        }
    
        @Test
        @DisplayName("available() on SMB2 returns peeked byte count and interacts with tree")
        void available_smb2_happyPath() throws Exception {
            // Verify SMB2 path: IOCTL peek result is returned and resources are closed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top