Commit Graph

  • b1d08af5a2 Patched Bluecove native code to work around a bug in OS X 10.4. akwizgran 2011-11-08 21:08:55 +00:00
  • 531889bd1f Log the local Bluetooth address. akwizgran 2011-11-08 14:49:15 +00:00
  • a14521526f Added Bluecove source for debugging. akwizgran 2011-11-08 13:30:21 +00:00
  • 4bf558542b Merge branch 'refs/heads/master' of ssh://akwizgran@briar.git.sourceforge.net/gitroot/briar/prototype akwizgran 2011-11-08 13:18:18 +00:00
  • 2c4c8824d0 Removed references to raw types. akwizgran 2011-11-08 13:17:28 +00:00
  • 81012406b1 Merge branch 'refs/heads/master' of ssh://akwizgran@briar.git.sourceforge.net/gitroot/briar/prototype akwizgran 2011-11-08 13:15:05 +00:00
  • ef6f61426f Removed calls to supportsMulticast() for Java 1.5 compatibility. akwizgran 2011-11-08 13:14:23 +00:00
  • 85e327035c Fixed some comments. akwizgran 2011-11-08 12:44:42 +00:00
  • 29eb900822 Non-JUnit tests for LAN socket plugin. akwizgran 2011-10-30 22:39:20 +00:00
  • 1b0bd6961a You can't step in the same Enumeration twice. akwizgran 2011-10-30 22:35:46 +00:00
  • 7065f54a57 Prefer LAN interfaces for invitations, WAN for connections. akwizgran 2011-10-30 22:26:23 +00:00
  • d1676781f0 Fixed test expectations. akwizgran 2011-10-30 21:42:55 +00:00
  • 681e82547e Try to close sockets when an exception is caught. akwizgran 2011-10-30 21:32:04 +00:00
  • 2c72b1e2e2 If no local address is configured, bind to any address. akwizgran 2011-10-30 21:31:24 +00:00
  • 517aea3b1f Socket plugin that supports exchanging invitations by LAN multicast (untested). akwizgran 2011-10-30 20:50:55 +00:00
  • 42ddfb444e Added a method to check which plugins support invitations. akwizgran 2011-10-29 09:52:07 +01:00
  • 70c7a9c077 Factored out non-Bluetooth-specific code. akwizgran 2011-10-29 09:47:19 +01:00
  • 4a9d700e61 Merge branch 'refs/heads/master' of ssh://akwizgran@briar.git.sourceforge.net/gitroot/briar/prototype akwizgran 2011-10-28 16:48:34 +01:00
  • d3060a3bd6 Class IDs may be in nested lists. Don't ask me why. akwizgran 2011-10-28 16:46:51 +01:00
  • 559cdfaeba Merged shared code in listener classes and made casts safe. akwizgran 2011-10-28 15:48:30 +01:00
  • 712d9b7698 Updated test to match changes to plugin. akwizgran 2011-10-28 13:37:52 +01:00
  • d2e1500ac1 Store the UUID in the local properties so it gets sent to contacts. akwizgran 2011-10-28 13:17:17 +01:00
  • 70c5d7ce75 Don't store the local address unless the device is discoverable. akwizgran 2011-10-28 13:16:00 +01:00
  • 40689b7e6e Avoid NoSuchElementException if the connection stalls. akwizgran 2011-10-28 13:13:05 +01:00
  • 0728f76933 Ignore case when comparing Bluetooth UUIDs. akwizgran 2011-10-28 12:54:20 +01:00
  • df125bdcd2 Ignore case when comparing Bluetooth UUIDs. akwizgran 2011-10-28 12:37:16 +01:00
  • 48d638746c Invitation API and two (untested) implementations. akwizgran 2011-10-27 17:52:03 +01:00
  • 59485fe392 Added comments for columns that may be null. akwizgran 2011-10-26 18:05:49 +01:00
  • 7d73f9604d Added a method for getting unread message counts for all groups. akwizgran 2011-10-26 17:56:35 +01:00
  • 6d91603bf7 Moved MessageHeader into DB component and added read/starred flags. akwizgran 2011-10-26 17:07:09 +01:00
  • 0f6b0e88c1 Added message flags: read/unread and starred/unstarred. akwizgran 2011-10-26 16:32:30 +01:00
  • b70b579fd6 Renamed locks in javadoc comments. akwizgran 2011-10-26 15:49:35 +01:00
  • 94722a9f2a Broadcast an event when an author's rating changes. akwizgran 2011-10-26 15:40:38 +01:00
  • 097d11f471 Exposed getMessageHeaders() through DatabaseComponent interface. akwizgran 2011-10-26 15:18:02 +01:00
  • d2bac9a4f8 Test and bugfix for getMessageHeaders(). akwizgran 2011-10-26 14:52:18 +01:00
  • 2628823db7 Added a method to get all message headers in a given group (untested). akwizgran 2011-10-25 17:12:37 +01:00
  • 995518c48b Upgraded H2 jar and removed workaround for Blob.getBytes() bug. akwizgran 2011-10-25 09:42:27 +01:00
  • 9ec8feec78 Added a method for retrieving the message body from the DB. akwizgran 2011-10-21 20:42:43 +01:00
  • 1173e0a563 Increased sleep intervals to avoid a race. akwizgran 2011-10-21 20:42:09 +01:00
  • ef61eaa804 Separated MessageHeader interface from Message interface. akwizgran 2011-10-21 18:42:27 +01:00
  • f2d80825bc Separated the subject line from the message body. akwizgran 2011-10-21 18:25:25 +01:00
  • 4d23e14d89 Unit tests for subscription and transport timestamps. akwizgran 2011-10-19 16:41:32 +01:00
  • c828db2e95 Don't send subscription or transport updates unless an update is due. akwizgran 2011-10-19 16:34:58 +01:00
  • 93cd31fa2d Simplify Database methods, move logic to DatabaseComponent. akwizgran 2011-10-19 15:54:56 +01:00
  • f18ddfe55f Variables protected by a monitor don't need to be volatile. akwizgran 2011-10-19 12:52:02 +01:00
  • 8713e81887 Use ZERO() to initialise columns where appropriate. akwizgran 2011-10-19 12:48:34 +01:00
  • dbdbb1d8d4 Never reuse contact IDs. akwizgran 2011-10-19 12:43:44 +01:00
  • c8b2cc38de Record when the transports and subscriptions visible to each contact were last modified. akwizgran 2011-10-18 17:32:32 +01:00
  • d7a417f36d Validate the decrypted IV before creating a reader/writer. akwizgran 2011-10-18 15:58:10 +01:00
  • 2f457162a5 Attach the affected contact IDs to subscription update events. akwizgran 2011-10-17 23:24:23 +01:00
  • ec56b12384 Converted database events from an enum to classes to allow them to carry data. akwizgran 2011-10-17 22:47:38 +01:00
  • 89001e4c91 Double-check the initiator flag and transport ID of incoming connections, and invert the flag for the responder's side. akwizgran 2011-10-15 14:15:25 +01:00
  • 2618fea0eb Guice module for stream transport connections. akwizgran 2011-10-14 22:50:34 +01:00
  • e214c40b11 Code cleanup and comments. akwizgran 2011-10-14 22:48:16 +01:00
  • 0ef1fcb686 De-uglified some code and moved two API classes. akwizgran 2011-10-14 21:49:58 +01:00
  • cb06ebc5d2 Locking. akwizgran 2011-10-14 21:37:55 +01:00
  • 0d11553134 StreamConnectionFactory and ConnectionDispatcherImpl (untested). akwizgran 2011-10-14 21:07:49 +01:00
  • 718bd8c540 Moved DB accesses outside the lock. akwizgran 2011-10-14 20:07:37 +01:00
  • 8ece8f3243 First stab at the StreamConnection state machine. Needs work. akwizgran 2011-10-14 19:50:17 +01:00
  • bd91e7ebf3 Renamed a DB event. akwizgran 2011-10-14 19:49:47 +01:00
  • e00e12d473 Call the listeners if a new ack might need to be sent. akwizgran 2011-10-14 18:29:14 +01:00
  • d48c7b6900 Converted {Incoming,Outgoing}BatchConnection into Runnables. akwizgran 2011-10-14 16:14:29 +01:00
  • 55182528cf Q: What does the plugin manager do? A: It manages plugins. akwizgran 2011-10-14 14:49:29 +01:00
  • d54ca67fe9 Tidied up synchronization. akwizgran 2011-10-13 13:08:54 +01:00
  • aabe72bfd7 Plugin factories. akwizgran 2011-10-12 17:26:05 +01:00
  • 64e2d7bca9 Refactoring: shorter class names. akwizgran 2011-10-12 17:25:37 +01:00
  • c5d9d9fa64 Minor concurrency cleanups. akwizgran 2011-10-12 17:11:31 +01:00
  • 3a07d1b882 Plugins don't need their own copies of configs and properties. akwizgran 2011-10-12 16:52:39 +01:00
  • 631f4e74b5 Nudge the database API in the direction of sanity. akwizgran 2011-10-11 19:08:10 +01:00
  • a49a95347f Use dedicated classes for transport properties and configs. akwizgran 2011-10-11 17:28:47 +01:00
  • 68b82ae826 Retrieve all remote transports from the DB in a single call. akwizgran 2011-10-10 22:35:46 +01:00
  • 4059fbf863 Moved plugin API from transport package to plugins package and merged transport subpackages. akwizgran 2011-10-10 16:18:48 +01:00
  • 125ae1b640 Always call the callback outside the plugin's lock. akwizgran 2011-10-08 13:13:28 +01:00
  • 50e5c51d77 Removed an unused field. akwizgran 2011-10-08 12:48:07 +01:00
  • 5f40015ec2 Moved callback initialisation from start() to constructor so it can be accessed outside the lock. akwizgran 2011-10-08 12:46:35 +01:00
  • 7eaefd97cb Added missing Override annotations. akwizgran 2011-10-08 12:45:49 +01:00
  • a3a5ebc14f Removed unused exceptions. Also disabled output for ant tests. akwizgran 2011-10-08 12:27:13 +01:00
  • 4b1ffbe85b Logging for plugins. akwizgran 2011-10-07 13:59:19 +01:00
  • 831cc42ddf Merge branch 'refs/heads/master' of ssh://akwizgran@briar.git.sourceforge.net/gitroot/briar/prototype akwizgran 2011-10-07 13:38:31 +01:00
  • 56c07a8d98 Tests for the Bluetooth plugin. akwizgran 2011-10-07 13:36:53 +01:00
  • a9b1a9123b Use discovery rather than hardcoded URLs (which don't work). akwizgran 2011-10-07 13:36:24 +01:00
  • f41dbd0836 Use discovery rather than hardcoded URLs (which don't work). akwizgran 2011-10-07 13:19:00 +01:00
  • ea6beac011 Plugin refactoring. akwizgran 2011-10-07 13:17:13 +01:00
  • a37186d574 Reverted to Bluecove 2.1.0 because discovery wasn't working on Linux. akwizgran 2011-10-07 12:12:12 +01:00
  • 3364604d03 Removed unused return value. akwizgran 2011-10-07 11:29:01 +01:00
  • 196c564d11 Upgraded Bluecove to 2.1.1 for Linux support without libbluetooth. akwizgran 2011-10-07 00:09:07 +01:00
  • 16c9bf7079 Unit test refactoring. akwizgran 2011-10-07 00:08:32 +01:00
  • 8fa77b57da Bluetooth plugin (untested). akwizgran 2011-10-06 19:33:12 +01:00
  • 6d68fa5c4a Check whether the socket has been set to null due to a failed re-binding. akwizgran 2011-10-06 19:32:55 +01:00
  • c08f6c4d1e Merged transports' finish() and dispose() methods. akwizgran 2011-10-06 19:00:33 +01:00
  • 07d6715881 Added Bluetooth jars. akwizgran 2011-10-06 18:43:43 +01:00
  • 7a994114ff Synchronize access to superclass members. akwizgran 2011-10-06 18:16:08 +01:00
  • 42e586abc4 Merged code from FilePlugin and SocketPlugin into a superclass. akwizgran 2011-10-06 18:07:58 +01:00
  • 3e522c81fa Plugins should not modify their properties or configs. akwizgran 2011-10-06 17:58:08 +01:00
  • 8468b84c54 Reduced visibility of methods where possible. akwizgran 2011-10-06 17:53:31 +01:00
  • bb9f03f1e8 Close and reopen the socket if necessary when the properties change. akwizgran 2011-10-06 17:39:51 +01:00
  • f23e89c80e Outgoing connection test. akwizgran 2011-10-06 12:59:27 +01:00
  • e7b404b7b3 Check that the socket is passed to the callback. akwizgran 2011-10-06 12:15:55 +01:00
  • 5bc9baff95 Accept connections on the local socket. akwizgran 2011-10-06 12:00:44 +01:00
  • 1ee765a052 Resolve the address before binding. akwizgran 2011-10-06 11:31:09 +01:00