str4d
d2d8d9d46e
Implement BQP transport descriptors
2016-03-26 15:52:58 +13:00
Ernir Erlingsson
4da63b3800
Modified the project structure, removed module extension and went instead for a non-complete core dependency graph
2016-03-14 21:02:51 +01:00
akwizgran
fe9c3adc64
Raise interrupt flag when catching InterruptedException.
2016-03-07 12:17:00 +00:00
akwizgran
0ac67239e3
Fixed race condition when closing redundant sockets.
...
When more than one invitation socket is opened, Alice should pick which one to use and Bob should use whichever one Alice picks. This fixes a race condition where each party picked a different socket and closed the other.
2016-03-07 11:50:47 +00:00
akwizgran
d829d4711b
Merge branch '251-bluetooth-polling' into 'master'
...
New polling logic for Bluetooth. #251
Increase the polling interval exponentially each time polling is unsuccessful, up to a maximum of 60 minutes. The interval is reset to 2 minutes whenever a connection is made and whenever Bluetooth is re-enabled.
This should reduce battery usage when there are no contacts nearby.
Fixes #251 .
See merge request !104
2016-02-24 20:08:05 +00:00
akwizgran
000936b7a2
Return the empty string instead of the fake address.
2016-02-24 20:03:04 +00:00
akwizgran
9789c0ff52
Try to use the real Bluetooth address on Android 6. #225
2016-02-23 11:53:54 +00:00
akwizgran
c081c08ff5
New polling logic for Bluetooth. #251
...
The polling interval increases exponentially each time polling is unsuccessful, up to a maximum of 60 minutes. The interval is reset to 2 minutes whenever a connection is made and whenever Bluetooth is re-enabled.
2016-02-22 13:21:05 +00:00
akwizgran
88475bdd54
Transport properties client. #229
2016-01-27 12:51:55 +00:00
akwizgran
124a4380d3
Don't disable Bluetooth unless we enabled it. #226
2016-01-20 16:55:01 +00:00
akwizgran
5355951466
Separate the sync layer from its clients. #112
2016-01-20 10:35:09 +00:00
Santiago Torres
190bb12964
ENH: Replaces transport config with namespaced settings
2016-01-20 00:57:16 -05:00
akwizgran
c5282c5b17
Moved some API classes into packages.
2015-12-17 16:56:57 +00:00
Torsten Grote
2d28dcada2
Create two new events to signal enabling and disabling of transports
2015-12-17 11:34:10 -02:00
akwizgran
53f6f24d53
Don't enable Bluetooth by default. #99
2015-12-03 17:13:49 +00:00
akwizgran
427efdc7d6
Raise minimum Java version to 6, upgrade H2. #24
2015-12-02 14:59:51 +00:00
akwizgran
027ae8340f
Whitespace-only code formatting changes.
2015-11-30 09:38:25 +00:00
akwizgran
a5b1d92eae
Log discovered devices to track down discovery bugs.
2015-03-11 10:24:53 +00:00
akwizgran
d3bf2d59a1
Use the same maximum frame length for all transports.
2015-01-05 16:24:44 +00:00
akwizgran
388b36b6be
Check periodically for retransmittable packets. Bug #46 .
2014-12-14 20:26:41 +00:00
akwizgran
d4fa656dbb
Application layer keepalives to detect dead TCP connections.
...
DuplexOutgoingSession flushes its output stream if it's idle for a
transport-defined interval, causing an empty frame to be sent. The TCP
and Tor plugins use a socket timeout equal to twice the idle interval to
detect dead connections.
See bugs #27 , #46 and #60 .
2014-12-13 12:00:40 +00:00
akwizgran
941efb4bbe
Merged IncomingConnectionExecutor and PluginExecutor into IoExecutor.
...
We don't need two separate executors for long-running IO threads.
2014-10-02 18:02:53 +01:00
akwizgran
eaff042601
Don't try to close server sockets twice.
...
This may have been the cause of bug #69 . Removed the wait-for-shutdown
code in DroidtoothPlugin that was added to attempt to avoid that bug.
2014-05-09 19:09:13 +01:00
akwizgran
f489da1a21
Wait for Bluetooth to be disabled before exiting.
...
This may have been the cause of Bluetooth not always being disabled at
shutdown on the Sony Xperia Tipo.
2014-04-05 21:36:56 +01:00
akwizgran
08b91d2483
Poll plugins when connectivity changes. Bug #66 .
...
This should enable us to connect to contacts faster at startup and
whenever a new means of connecting becomes available.
2014-04-04 22:06:36 +01:00
akwizgran
e260aac3d2
All tryToClose() methods should check for null arguments.
2014-04-04 20:04:47 +01:00
akwizgran
c028728c19
Code cleanup for DroidtoothPlugin.
2014-03-22 16:35:47 +00:00
akwizgran
ab2849e2f3
Bluetooth discovery was running for too long. Bug #64 and possibly #61 .
...
The variable now wasn't being updated when no devices were discovered.
2014-03-22 15:20:56 +00:00
akwizgran
5755aed362
Android Bluetooth plugin binds a socket each time BT is enabled.
...
Dev task #80 .
2014-03-13 18:39:53 +00:00
akwizgran
b270f0e8b1
Call Thread.currentThread().interrupt() when handling interruption.
2014-03-12 21:11:11 +00:00
akwizgran
b99a503f24
Removed unnecessary conditionals from logging statements.
...
Very important stuff.
2014-03-12 21:00:14 +00:00
akwizgran
4560cf17ff
Notification settings. Dev task #76 .
2014-03-10 18:00:36 +00:00
akwizgran
56f79755a4
Added a config setting to not enable Bluetooth automatically (bug #28 ).
...
There's currently no way to set this setting, so the bug isn't fixed.
2014-03-03 15:31:05 +00:00
akwizgran
a2d099ea17
Added debugging screen to alpha and beta builds. Dev task #73 .
2014-02-28 23:44:35 +00:00
akwizgran
3842a5c70d
Code cleanup.
2014-02-04 19:05:48 +00:00
akwizgran
822392f9e7
Use strings rather than hashes to identify transports. Dev task #64 .
2014-01-24 10:39:34 +00:00
akwizgran
832476412c
Changed the root package from net.sf.briar to org.briarproject.
2014-01-08 16:18:30 +00:00