Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for makeKey (0.4 sec)

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

         * Creates a key for the specified request for response matching.
         *
         * @param request the request to create a key for
         * @throws IOException if an I/O error occurs
         */
        protected abstract void makeKey(Request request) throws IOException;
    
        /**
         * Reads and returns the key of the next message without consuming it.
         *
         * @return the request key of the next message
    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/smb1/smb1/SmbTransport.java

                socket.close();
            } finally {
                digest = null;
                socket = null;
                tconHostName = null;
            }
        }
    
        @Override
        protected void makeKey(final Request request) throws IOException {
            /* The request *is* the key */
            if (++mid == 32000) {
                mid = 1;
            }
            ((ServerMessageBlock) request).mid = mid;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportTest.java

            private IOException recvException = null;
            private boolean connectFails = false;
            private boolean disconnectResult = false;
    
            @Override
            protected long makeKey(Request request) throws IOException {
                return nextKey++;
            }
    
            @Override
            protected Long peekKey() throws IOException {
                if (recvException != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/transport/Transport.java

         *
         * @param request the request to generate a key for
         * @return the generated key
         * @throws IOException if an I/O error occurs
         */
        protected abstract long makeKey(Request request) throws IOException;
    
        /**
         * Peek at the next key without removing it from the input stream
         *
         * @return the next key or null if none available
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

        /**
         * @return
         * @throws IOException
         */
        private int negotiateWrite(final CommonServerMessageBlockRequest req, final boolean setmid) throws IOException {
            if (setmid) {
                makeKey(req);
            } else {
                req.setMid(0);
                this.mid.set(1);
            }
            final int n = req.encode(this.sbuf, 4);
    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/test/java/jcifs/EncodableTest.java

                    Arguments.of(makeSeq(8), 0, 8, 0), // full copy at index 0
                    Arguments.of(makeSeq(10), 2, 5, 3), // middle slice, non-zero dst index
                    Arguments.of(makeSeq(4), 4, 0, 0), // zero-length slice at end
                    Arguments.of(makeSeq(16), 7, 3, 0), // small slice from middle
                    Arguments.of(makeSeq(16), 0, 0, 5) // zero-length with non-zero dst index
            );
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top