Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addBytesReceived (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            assertEquals(0, channelInfo.getRequestsSent());
            assertEquals(0, channelInfo.getErrors());
    
            channelInfo.addBytesSent(1000);
            channelInfo.addBytesReceived(2000);
            channelInfo.incrementRequestsSent();
            channelInfo.incrementErrors();
    
            assertEquals(1000, channelInfo.getBytesSent());
            assertEquals(2000, channelInfo.getBytesReceived());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        public void addBytesSent(long bytes) {
            bytesSent.addAndGet(bytes);
        }
    
        /**
         * Add bytes received
         *
         * @param bytes number of bytes
         */
        public void addBytesReceived(long bytes) {
            bytesReceived.addAndGet(bytes);
        }
    
        /**
         * Increment requests sent counter
         */
        public void incrementRequestsSent() {
            requestsSent.incrementAndGet();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top