303304305306307308309310311312313
}else{ read_buffer.position(DirectByteBuffer.SS_PROXY, 0); read_buffer.limit( DirectByteBuffer.SS_PROXY, read_buffer.capacity(DirectByteBuffer.SS_PROXY)); } } } return( len > 0 );
344345346347348349350351352353354
}else{ read_buffer.position(DirectByteBuffer.SS_PROXY,0); read_buffer.limit( DirectByteBuffer.SS_PROXY, read_buffer.capacity(DirectByteBuffer.SS_PROXY)); connection.requestReadSelect( chan2 ); } return( written > 0 );
122123124125126127128129130
offset++; } } buffer.position( DirectByteBuffer.SS_FILE, buffer.limit( DirectByteBuffer.SS_FILE )); } } }
345346347348349350351352353354355
for ( int i=0;i<buffers.length;i++ ){ DirectByteBuffer buffer = buffers[i]; limits[i] = buffer.limit( SS_FILE ); int rem = buffer.remaining( SS_FILE ); if ( rem > rem_space ){
351352353354355356357358359360361
int rem = buffer.remaining( SS_FILE ); if ( rem > rem_space ){ buffer.limit( SS_FILE, buffer.position( SS_FILE ) + rem_space ); rem_space = 0; }else{