return the last true in the ack array concode_field_sep String fileName concode_elem_sep DatagramPacket requestPacket concode_elem_sep int cwnd concode_elem_sep ArrayList<Boolean> timeoutList concode_elem_sep int slowStart concode_elem_sep int start concode_elem_sep int index concode_elem_sep boolean[] ackArray concode_elem_sep Packets[] arrayOfPackets concode_elem_sep Integer[] sync concode_elem_sep DatagramSocket socket concode_elem_sep InetAddress aHost concode_elem_sep int destPort concode_elem_sep File sendingFile concode_elem_sep String destAddress concode_elem_sep int end concode_elem_sep Thread[] threadArray concode_field_sep byte[] serializePacket concode_elem_sep void sendACK concode_elem_sep void startSending concode_elem_sep void run concode_elem_sep void run concode_elem_sep void run concode_elem_sep void main concode_elem_sep byte[] serializeFileName concode_elem_sep boolean istimeOut concode_elem_sep void generateSegArray concode_elem_sep int countAckFalse concode_elem_sep Object deserializePacket concode_elem_sep int countTimeout concode_elem_sep boolean listenForHS concode_elem_sep void send concode_elem_sep boolean sendFileName
int function ( int arg0 , int arg1 ) { int loc0 = arg1 ; for ( int loc1 = ackArray . length - 1 ; loc1 >= arg0 ; loc1 -- ) { if ( ackArray [ loc1 ] ) { loc0 = loc1 ; break ; } } return loc0 + 1 ; }