gardners
2d0bb3fa4b
fixed supression of duplicate conversation listings when plys for both
...
directions exist.
2013-05-15 15:25:21 +09:30
gardners
6a267d613a
decoding real sender from ssender fields now works.
2013-05-15 14:51:50 +09:30
gardners
085ac3358a
refactor bundle reading code for meshms.
...
fixed bugs with parsing SIDs that are NULL pointers.
progress towards list conversations working.
2013-05-15 11:56:02 +09:30
gardners
1c0837f8cd
fix various bugs preventing obfuscated sender / conversation list
...
bundle from working.
2013-05-14 22:56:19 +09:30
gardners
2af6d245f7
progress towards obfuscated senders working.
2013-05-14 15:36:00 +09:30
gardners
7aaaece42c
meshms list conversations deduplicates output, and is covered by a
...
test.
2013-05-10 20:54:11 +09:30
gardners
c871296b4f
meshms list conversations implemented, and covered by simple test.
2013-05-10 20:47:33 +09:30
gardners
020ea915f3
add "meshms list conversations" command.
2013-05-10 20:30:25 +09:30
gardners
82b10de0f4
Merge in recent work on meshms in servald by Alexandra and myself.
...
Merge commit 'dfcd35143eac7cfc35aa49e5ae6c3ca15c572e52' into meshms
Conflicts:
commandline.c
sourcefiles.mk
2013-05-10 12:22:16 +09:30
gardners
ab62694c21
fixed string termination bug.
2013-05-09 13:22:51 +09:30
gardners
3dd9e8741a
major refactor of meshms handling to de-duplicate functionality
...
and simply function interfaces.
2013-05-09 13:17:24 +09:30
gardners
c9995dbf52
clean up more compiler warnings etc.
2013-05-03 16:11:26 +09:30
gardners
c3a7bfdb89
various cleanups.
2013-05-03 15:52:20 +09:30
alexandrasclapari
b8bc580af0
Two command lines working : read message log and add message but need to fix the length (calculated by the system and not provided
2013-04-30 20:49:53 -07:00
alexandrasclapari
26ca801006
Serialization of new meshms format message
2013-04-10 22:55:58 -07:00
Jeremy Lakeman
96c0889f9a
Don't ask for manifests if we don't have room in transfer queues
2013-04-11 15:24:41 +09:30
Andrew Bettison
65f6e88e67
Add emkdirs() and emkdirsn()
2013-04-04 17:37:49 +10:30
alexandrasclapari
c215b006a3
new function app_meshms_read_messagelog : read and display a messagelog file in hexa and ascii without parsing
2013-04-01 01:08:33 -07:00
Jeremy Lakeman
90386ce1b1
Merge remote-tracking branch 'origin/development' into serial
...
Conflicts:
rhizome.h
rhizome_database.c
rhizome_fetch.c
rhizome_store.c
2013-02-20 17:23:03 +10:30
Jeremy Lakeman
73786bcb5d
Refactor all rhizome reading and writing
...
- The API in rhizome_store.c is used for all reading and writing
- external storage is now usable for all transport options
2013-02-20 16:18:59 +10:30
gardners
944486c048
simplify external/internal blob storage to a boolean flag instead
...
of a threshold.
2013-02-20 16:18:59 +10:30
gardners
9e9f93b079
make external blob output conditional on debug flag.
2013-02-20 16:18:58 +10:30
gardners
2252fdcaa7
created tool for automatically finding IN()s without matching
...
OUT()s or where return() is used instead of RETURN().
Added OUT() to end of all functions using IN() that lacked it to
make it easier to statically analyse this invariant.
Fixed several return instead of RETURNs detected through use of
this tool. #49
2013-02-20 16:18:56 +10:30
Andrew Bettison
390655580d
Add 'rhizome delete' and 'rhizome clean' commands
...
sqlite_void_exec() and its ilk now return the count of changed rows, not
just zero, on success
sqlite_exec_prepared() and its ilk now return the count of rows (number
of step results SQLITE_ROW), instead of just zero, on success
rhizome_clean() function now produces an optional report of its changes
rhizome_fail_write() and rhizome_finish_write() now log WARNings not
ERRORs if the SQL DELETE FROM FILES or DELETE FROM FILEBLOBS statements
fail
Refactor rhizome_open_read() to use sqlite_exec_int64()
Ensure that 'rhizome extract' and 'rhizome dump' commands return exit
status of 1 in "not found" conditions, not 255, which is reserved for
errors
Test cases for four new commands: 'rhizome delete bundle', 'rhizome
delete manifest', 'rhizome delete payload' and 'rhizome delete file'
(no test case for 'rhizome clean' yet)
2013-02-20 15:37:09 +10:30
gardners
641d749ab4
Create files for large rhizome bundles
...
- configurable size threashold
2013-02-20 15:36:32 +10:30
gardners
f465f3a9ee
Add lots of profiling to assist in debugging
...
- made some debug output conditional.
- make it possible to debug slip decoding without getting swamped by other output.
- Improve reporting of unnamed schedule() calls.
- always collect performance statistics, and report on any excess
use (>1sec in every 3), even if debug.timing is not enabled.
- include file size information in Rhizome transfer messages.
- reduce output when debug.rhizome_rx is set.
2013-02-20 15:36:30 +10:30
gardners
506ceea309
log when BAR lookups are slow.
2013-02-20 15:36:29 +10:30
gardners
83625198cb
tweak BAR lookup filter in light of packets arriving with 20 BARs
...
at a time, which can take 4seconds(!) to process on a WR703N.
2013-02-20 15:36:29 +10:30
gardners
8befcf7c11
create indexes for ID and VERSION on MANIFESTS table to reduce the
...
time it takes to lookup whether BARs are interesting.
2013-02-20 15:36:29 +10:30
gardners
17ea1b69b3
don't look at all BARs if we are too slow.
2013-02-20 15:36:29 +10:30
Jeremy Lakeman
e4d6520c46
Don't request manifests that are already in the fetch queue
2013-02-20 15:36:25 +10:30
Jeremy Lakeman
ba1800012e
Only advertise BAR's on an alarm
...
- we no longer hit the database for every outgoing packet, attempting to announce bundles
- we no longer advertise manifests periodically
- when an interesting bar arrives, we ask for the manifest to be announced, which uses the existing packet format
2013-02-20 15:36:23 +10:30
Andrew Bettison
cf13a4b51e
Add 'rhizome.clean_on_open' config option
2013-02-20 14:43:20 +10:30
Jeremy Lakeman
3a93fee8a5
New JNI interface to better support cursor result sets
2013-01-23 14:43:50 +10:30
Jeremy Lakeman
ad01836d0e
Use database query to respond to rhizome list, add name argument
2013-01-17 11:45:45 +10:30
Jeremy Lakeman
6dcc434541
Add more manifest fields as database columns
2013-01-16 10:56:09 +10:30
Jeremy Lakeman
b25ff45438
Importing the same bundle twice returns duplicate flag
2013-01-15 10:32:48 +10:30
Jeremy Lakeman
09617b9ce0
Set sqlite temp directory explicitly, increase database timeout
2013-01-06 19:43:14 +10:30
Jeremy Lakeman
7978bc0b1a
Add logging for sqlite errors
2013-01-06 14:18:36 +10:30
Jeremy Lakeman
c7cf80b352
Use sqlite user schema version to remember state
2013-01-06 13:04:49 +10:30
Jeremy Lakeman
e26522bdc6
Minor improvements to command line time measurements
2013-01-03 14:16:33 +10:30
Jeremy Lakeman
2e761c17fa
Only consider duplicate manifests that we can re-author
2013-01-03 12:23:50 +10:30
Jeremy Lakeman
2967d1e00f
Don't check for duplicates if an existing id has been supplied
2013-01-03 11:18:30 +10:30
Jeremy Lakeman
8b045dd1a6
Extract files based on the manifest id
...
Renamed rhizome extract file to rhizome dump file
Added rhizome extract file [manifest] [filepath] [pins]
Modified tests to use the appropriate command, assuming that MeshMS payloads will be encrypted
2013-01-02 12:58:05 +10:30
Jeremy Lakeman
6c7ba438a3
Refactor rhizome extract manifest into more useful methods
2013-01-02 11:15:03 +10:30
Jeremy Lakeman
a492c05d64
Re-add database cleanup
2012-12-31 15:09:12 +10:30
Jeremy Lakeman
898cddfcd3
Tidy up rhizome extract return code
2012-12-31 13:21:37 +10:30
Jeremy Lakeman
5b48a85f7d
Don't clean up database on every open call
2012-12-28 13:17:04 +10:30
Jeremy Lakeman
c8fbef9016
Fix transaction error checking
2012-12-28 12:47:21 +10:30
Jeremy Lakeman
04eaf99243
Added transaction around file blob creation to ensure rowid is correctly retrieved
2012-12-28 12:10:42 +10:30