akwizgran
79ad5ca07e
Ensure TimeoutInputStreams are closed.
2020-08-13 16:35:03 +01:00
akwizgran
79f3a77e1a
Annotate methods that should be called with a wake lock.
2020-08-12 16:47:02 +01:00
akwizgran
452c3afbb3
Merge branch '1142-inject-plugin-factories' into 'master'
...
Use injection to create plugin factories
See merge request briar/briar!1270
2020-08-12 15:46:02 +00:00
akwizgran
9d60fbe957
Merge branch '1142-wakeful-polling' into 'master'
...
Hold a wake lock while polling
See merge request briar/briar!1269
2020-08-12 15:45:08 +00:00
akwizgran
6e8e955dc2
Update javadocs.
2020-08-07 16:16:31 +01:00
akwizgran
1af951f8b4
Use injection to create plugin factories.
2020-08-07 15:11:03 +01:00
akwizgran
b5341700be
Add wakeful IO executor.
2020-08-07 15:10:18 +01:00
akwizgran
3aa00ecb3d
Pass executor to scheduler.
2020-08-07 15:08:53 +01:00
akwizgran
f1bde4e75c
Fixed delay is easier to reconcile with sleeps than fixed rate.
2020-08-07 15:02:05 +01:00
akwizgran
ac80a90ef3
Add Android task scheduler.
2020-08-07 15:02:05 +01:00
akwizgran
86641741a0
Wrap scheduler in an interface.
2020-08-07 15:02:05 +01:00
Torsten Grote
280f87065e
Merge branch 'reflected-bt-address' into 'master'
...
Use reflected BT address if we don't know our own address
See merge request briar/briar!1265
2020-08-07 13:59:00 +00:00
akwizgran
f4e9e10245
Remove unused constants.
2020-07-21 17:07:37 +01:00
akwizgran
a4091be6f7
Ignore reflected address until we've made a Bluetooth connection.
...
This reduces the opportunities for contacts to reflect a false address.
2020-07-21 17:06:02 +01:00
akwizgran
49f0640278
Use reflected Bluetooth address if we don't know our own address.
2020-07-21 17:06:02 +01:00
akwizgran
d617e67006
Add method for plugins to get remote properties.
2020-07-21 17:06:02 +01:00
akwizgran
2063f6c57c
Don't attach contact ID to RemoteTransportPropertiesUpdatedEvent.
2020-07-21 17:05:41 +01:00
akwizgran
f68d8d284f
Merge branch 'master' into 'reflected-transport-properties'
...
# Conflicts:
# bramble-core/src/main/java/org/briarproject/bramble/properties/TransportPropertyManagerImpl.java
2020-07-21 09:18:29 +00:00
akwizgran
90e91221d9
Reflect discovered properties back to the remote peer.
2020-07-16 14:25:43 +01:00
akwizgran
b91fe66461
Broadcast an event when remote transport properties are updated.
2020-07-16 11:38:55 +01:00
akwizgran
34677eb3a7
Migrate to v3 hidden services.
2020-06-30 12:22:16 +01:00
akwizgran
fb85730b8e
Enable LAN by default, as on master.
...
Let's not break too many things at once.
2020-06-26 17:42:05 +01:00
akwizgran
48b1e77065
Use constants for default plugin settings.
2020-06-26 17:42:05 +01:00
akwizgran
badc6da649
Accept any link-local IPv6 address.
...
This allows IPv6 to be used when providing an access point.
2020-06-26 17:37:16 +01:00
akwizgran
e1084ffadd
Support IPv6 SLAAC addresses.
2020-06-26 17:37:15 +01:00
akwizgran
802e599f09
Add STARTING_STOPPING state, use flags for reasons disabled.
2020-06-26 17:34:37 +01:00
akwizgran
71b0408fe6
Remove "don't connect" option from Tor network setting.
...
This has been replaced by the enable/disable setting and no longer
works.
2020-06-26 17:34:37 +01:00
Torsten Grote
0fec5d7783
[bramble] Add method for enabling/disabling plugins to PluginManager
2020-06-26 17:34:37 +01:00
akwizgran
339524500b
Make REASON_USER into a generic reason code.
2020-06-26 17:34:36 +01:00
akwizgran
03811f78fa
Add toggle setting for LAN plugin.
2020-06-26 17:34:36 +01:00
akwizgran
fc86c46456
Update semantics of Bluetooth setting.
...
The setting now enables/disables the plugin, not just contact
connections. The key agreement UI will need to be updated to change the
setting if the user agrees to use Bluetooth.
2020-06-26 17:34:36 +01:00
akwizgran
63e3c661a3
Add toggle setting for Tor plugin.
2020-06-26 17:34:36 +01:00
akwizgran
c08bdf96cd
Update javadocs for lock-safe methods.
2020-06-26 17:34:35 +01:00
akwizgran
c554847b54
Add TransportStateEvent, rename existing events.
2020-06-26 17:34:35 +01:00
akwizgran
ecea2c587d
Add method for getting reason why plugin is disabled.
2020-06-26 17:34:35 +01:00
akwizgran
ea288b998b
Rename available/unavailable states.
2020-06-26 17:34:34 +01:00
akwizgran
b2a1ea84f8
Provide more information about plugin states.
2020-06-26 17:34:32 +01:00
akwizgran
648f26542c
Simple connection limiter that closes connections cleanly.
2020-06-26 10:57:08 +01:00
akwizgran
7736a3b6fc
Use separate methods for registering incoming and outgoing connections.
2020-06-26 09:59:03 +01:00
akwizgran
cc943be540
Update javadoc.
2020-06-01 15:30:30 +01:00
akwizgran
6eb77465f6
Don't try to reconnect if the connection was closed cleanly.
2020-06-01 14:49:55 +01:00
akwizgran
35d1b406f7
Refactor transport preferences.
2020-06-01 14:49:55 +01:00
akwizgran
7d6b65913a
Combine connection chooser with connection registry.
2020-05-25 16:42:01 +01:00
akwizgran
d3d7212b08
Add registry method for deciding which contacts to poll.
2020-05-13 17:55:05 +01:00
akwizgran
1b2b50d91b
Exchange priority records and close redundant connections.
2020-05-12 21:36:58 +01:00
akwizgran
ee9c771045
Add priority record for choosing between redundant connections.
2020-05-12 21:36:58 +01:00
akwizgran
79482d5e3a
Move connection management to its own package.
2020-05-12 17:36:35 +01:00
akwizgran
c80d3196af
Use milliseconds for timing.
2020-05-11 15:42:23 +01:00
akwizgran
21f3a9f3c7
Add javadoc.
2020-05-08 16:22:46 +01:00
akwizgran
f2f278c393
Add timeout monitor for Bluetooth connections.
2020-05-08 16:22:46 +01:00