Commit Graph

731 Commits

Author SHA1 Message Date
akwizgran
bfbcdfa5a7 Don't send and receive invitations unless the plugin supports it. 2012-12-06 16:13:54 +00:00
akwizgran
1786b39d6e Don't overwrite the first frame's header with data. 2012-12-06 16:09:15 +00:00
akwizgran
d3062a992d Increased connection timeout to 2 minutes, more logging. 2012-12-06 16:05:57 +00:00
akwizgran
058323c6c2 Log at Level.INFO instead of Level.FINE. 2012-12-06 16:01:31 +00:00
akwizgran
940f362a97 More logging to debug the reliability layer. 2012-12-06 15:55:14 +00:00
akwizgran
706d3ea3cf Initialise the reliability layer. 2012-12-06 15:55:00 +00:00
akwizgran
e9ebec44cd More logging to debug the reliability layer. 2012-12-06 15:45:14 +00:00
akwizgran
78953289f7 Flush the output stream after writing. 2012-12-06 15:44:58 +00:00
akwizgran
4c9c49fa55 Logging to debug reliability layer. 2012-12-06 15:36:51 +00:00
akwizgran
f9ec483791 If the modem is off the hook when it's stopped, hang up. 2012-12-06 15:33:51 +00:00
akwizgran
584f7de0ab Wait a long time for a connection (modems take a while to connect). 2012-12-06 15:27:26 +00:00
akwizgran
cdc89f5cba Recompiled jSSC for Java 1.5 (again). 2012-12-06 15:20:16 +00:00
akwizgran
a4712140e6 Made serial port's state volatile, added method for stopping modem. 2012-12-06 15:09:04 +00:00
akwizgran
25fa4decfb Include /dev/ttyusbmodem* in serial port list on OS X. 2012-12-06 14:34:10 +00:00
akwizgran
f0c61a9b25 Find Linux serial ports by exploring /dev rather than executing dmesg. 2012-12-06 14:17:03 +00:00
akwizgran
80f5e0a7ff Don't try to close the serial port if it wasn't opened. 2012-12-06 14:07:19 +00:00
akwizgran
4ece151df8 Include stack traces in logs. 2012-12-06 14:00:31 +00:00
akwizgran
56e7f459e8 Allow the modem to respond OK more than once. 2012-12-06 13:56:14 +00:00
akwizgran
c13c01a114 Recompiled jSSC for Java 1.5. 2012-12-06 13:46:16 +00:00
akwizgran
12765ee173 Patched jSSC to recognise /dev/tty.modem as a serial port on OS X. 2012-12-06 13:43:30 +00:00
akwizgran
aec43d6de7 Enabled logging in non-JUnit modem tests. 2012-12-06 13:36:10 +00:00
akwizgran
51a4f2fd62 Updated non-JUnit plugin tests and added tests for the modem plugin. 2012-12-06 13:10:14 +00:00
akwizgran
dca9470c28 Updated ant build files for multi-project structure. 2012-12-05 23:15:35 +00:00
akwizgran
f5626bee05 Moved API classes into a separate project to enforce dependency rules. 2012-12-05 22:19:12 +00:00
akwizgran
5204e0b907 Fixed ant build files for Android project. 2012-12-05 21:31:13 +00:00
akwizgran
b995a2dce8 Set Eclipse compilation target to Java 1.5. 2012-12-05 21:02:30 +00:00
akwizgran
29d25cce6b Fixed classpaths of Android and test projects. 2012-12-05 21:00:47 +00:00
akwizgran
fa295da4dd Merged prototype-test repo into prototype repo, as a separate Eclipse project. 2012-12-05 20:41:01 +00:00
akwizgran
f4f7b96d50 Separated Android code and core code into distinct Eclipse projects.
This should make it possible to develop the core in Eclipse without the ADT.
2012-12-05 20:39:31 +00:00
akwizgran
366d391d89 Removed Java 1.6 API call. 2012-11-30 12:53:03 +00:00
akwizgran
4050c17a9a Recompiled jSSC for Java 1.5. 2012-11-30 12:50:03 +00:00
akwizgran
79aee8141a Logging for modem plugin. 2012-11-30 12:11:49 +00:00
akwizgran
7afd2d8f74 Don't accept an unreasonably large window size. 2012-11-27 15:38:55 +00:00
akwizgran
80543984be Use whole buffers for reads and writes. 2012-11-27 15:16:56 +00:00
akwizgran
705b87b97c Writes to the reliability layer should be asynchronous.
The flow control window will limit the amount of buffered data.
2012-11-27 14:51:34 +00:00
akwizgran
f8210e1b13 Wake any readers that are waiting for data when the modem hangs up. 2012-11-27 14:40:21 +00:00
akwizgran
4869a8034b Removed unnecessary synchronization. 2012-11-27 00:09:33 +00:00
akwizgran
116e194185 Replace the modem instance if an exception occurs. 2012-11-27 00:05:25 +00:00
akwizgran
14f2fd1995 Code cleanup, fixed potential NullPointerException if never connected. 2012-11-27 00:00:52 +00:00
akwizgran
a0c015352d Reliability layer for the modem plugin (untested). 2012-11-26 23:54:17 +00:00
akwizgran
38a8799a7c Removed stack traces. 2012-11-26 23:53:15 +00:00
akwizgran
f487d4f48a Don't allow input or output streams to be used after hanging up. 2012-11-26 22:26:07 +00:00
akwizgran
4f37cb0837 The not operator is quite important. 2012-11-26 21:26:35 +00:00
akwizgran
2a293b5018 Use a fresh receive queue for each call.
This prevents a caller from getting stale data and/or a stale EOF marker
if a previous caller didn't consume the queue.
2012-11-26 16:16:36 +00:00
akwizgran
98f1f26fcf Give names to threads for debugging purposes. 2012-11-26 14:48:10 +00:00
akwizgran
721a6b8950 First pass at a modem plugin. 2012-11-26 14:09:18 +00:00
akwizgran
6cc8463209 First pass at a modem plugin (unfinished). 2012-11-24 13:35:23 +00:00
akwizgran
d706363866 Removed unnecessary throws declarations. 2012-11-24 13:35:04 +00:00
akwizgran
dc932764ec You can't use an AtomicBoolean as a semaphore. 2012-11-24 12:32:45 +00:00
akwizgran
9a3157c3e6 Removed unnecessary locking. 2012-11-24 11:46:49 +00:00