This shows how to use the search incrementally. This can allow you to have a progress bar, or do some background work while searching.
This will demonstrate the use of the following services:
3 rvn = reven.reven_connection(
"localhost", 13370)
4 count = rvn.run_get_sequence_count(
"Execution run") - 1
6 range = reven.execution_range(0, count)
9 search = reven.search_request(reven.filter_criterion_address(0x400000))
12 search.max_results = 1
15 search.max_sequences = count / 100
17 while range.begin() < range.end():
19 print 'Searching... %d%% done.' % ((range.sequence_identifier * 100) / count)
20 result = rvn.run_search_sequences(range, search)
22 if len(result.content) > 0:
23 print 'Found result at %d' % result.content[0].sequence.index
27 range = result.remaining_range