public void updateBytesSent ( long num ) { Iterator < ByteBuffer > iter = buffers . iterator ( ) ; while ( iter . hasNext ( ) ) { ByteBuffer cur = iter . next ( ) ; if ( cur . hasRemaining ( ) ) { break ; } iter . remove ( ) ; } }
Indicate that some data has been flushed to the network