Commit graph

50 commits

Author SHA1 Message Date
a22b32f607 Retry internet connections if all nodes disconnected 2016-09-25 20:17:26 +09:00
f579608f6b Don't crash if we can't bind to server socket 2016-09-24 19:03:49 +09:00
ab5370cd86 Removed unused MaxConnections setting 2016-09-24 18:50:46 +09:00
e9da8cd1f5 Updated slick to avoid crashes at startup 2016-09-22 09:42:54 +09:00
81d8230abc Updated dependencies 2016-09-19 16:48:51 +09:00
5bb97a1460 Removed maxConnections limit 2016-09-19 06:00:35 +09:00
1d8736931f Added new default server 2016-09-19 05:03:49 +09:00
f3ec28fef8 Allow adding other device by address, auto request public key 2016-09-13 01:48:58 +02:00
127e4c9ff2 Formatting fixes 2016-08-27 03:08:20 +02:00
e886f1563a Limit retry count value to 6 2016-08-20 16:18:46 +02:00
882b518a7c Refactored class layout of core package. 2016-08-20 16:13:29 +02:00
7c9c6803dc Also sign header data 2016-08-20 15:48:07 +02:00
6bebfcf3cf Fixed crash on database upgrade. 2016-07-17 17:51:36 +02:00
acbcd68384 Added logging to MessageBuffer. 2016-07-17 17:34:24 +02:00
579d1f5717 Added message confirmations to protocol (ref #22). 2016-07-17 17:05:12 +02:00
338a51fea9 Fixed database test. 2016-07-15 21:06:57 +02:00
6799deea9d Fixed crash when picking relays if a neighbor wasn't in the db. 2016-07-15 20:45:29 +02:00
989ec6efb1 Fixed test compile error. 2016-07-01 21:55:14 +02:00
45bb01cd8e Don't accept message if number of forwarding tokens is too high. 2016-07-01 21:55:05 +02:00
4a36fdbef2 Send messages via relays (fixes #26). 2016-06-24 13:34:59 +02:00
1add05b72f Store total node connection time in database. 2016-06-07 20:10:10 +02:00
23ee0f6da7 Added message buffer with automatic retry. 2016-06-02 21:36:48 +02:00
7ce2e937ab Added extra trace logging for RREQ/RREP/RERR messages. 2016-05-31 12:26:23 +02:00
83fc696cc7 Implemented AODVv2, including integration test (fixes #33).
For documentation on how AODVv2 works, see this link:
https://datatracker.ietf.org/doc/draft-ietf-manet-aodvv2/

Note that this implementation is incompatible with AODVv2 itself,
as various details are changed, and not all features have been
implemented
2016-05-29 18:35:50 +02:00
2cc4928a99 Use SLF4J for logging. 2016-05-29 18:24:36 +02:00
8bafd62e35 Simplified ConnectionHandler interface. 2016-05-10 17:19:36 +09:00
453b2d7fe6 Assume default port if none is specified. 2016-04-10 17:32:55 +02:00
97e70c2092 Renamed KeyServers to KeyAddresses, properly use defaults. 2016-04-07 20:39:22 +02:00
656f52d3f3 Switch to Slick with H2 as database.
This allows us to use the same database implementation for Android
and servers.
2016-04-01 00:56:05 +02:00
127acfb3ab Use domain instead of IP for default server. 2016-03-08 01:33:44 +01:00
4d6afbc9cd Limit number of internet connections, connect to random node. 2016-02-16 19:08:51 +01:00
375d245765 Added second default node.
This will only have an effect for new installs.
2016-02-16 18:23:04 +01:00
721c99c6d9 Optimized imports. 2016-02-11 17:42:32 +01:00
8c7d4db8c5 Fixed unit tests. 2016-02-11 14:03:10 +01:00
021e22e50b Don't need to block explicitly on transfers. 2016-02-11 13:54:34 +01:00
ba3ce67a06 Fixed crash when receiving message with invalid length. 2016-02-11 13:51:15 +01:00
02a506608f Significantly decreased CPU usage.
Calls to InputStream#available() weren't blocking, so the loops
in both classes were running hot. Replaced the conditional with
a blocking call instead. CPU usage is down from 100% to barely
noticable.
2016-02-10 21:18:51 +01:00
84e00a23d2 Don't display the same message multiple times. 2016-02-01 14:54:58 +01:00
6e3cf1da63 Catch SocketException. 2016-02-01 14:35:31 +01:00
ddb3d64708 Added user option for server. 2016-01-25 22:17:56 +01:00
d2f497d4de Log username and status on start. 2016-01-24 23:43:10 +01:00
dc55d74f9b Log address with username on connect if we know the name. 2016-01-24 14:03:07 +01:00
3cbba72117 Updated server address, improved documentation. 2016-01-24 13:45:43 +01:00
244fd32762 Catch InvalidKeyException when receiving messages. 2016-01-19 00:08:53 +01:00
199b185861 Added server project for internet routing.
Also adjusted Log trait and visibility of library classes.
2016-01-18 18:19:41 +01:00
49293e259e Cleaned build scripts. 2015-11-21 21:29:14 +01:00
925eb2d5c5 Use encrypt-then-mac instead of mac-and-encrypt. 2015-11-19 22:43:46 +01:00
f5ee0996eb Force close app when exception occurs in FutureHelper. 2015-10-29 14:42:31 +01:00
a951b05965 Improved documentation for Crypto class. 2015-10-18 22:40:01 +02:00
269fe41ebf Split project into seperate modules for core and android (fixes #18). 2015-10-18 22:39:51 +02:00