akwizgran
9abe920edb
Plugin code cleanup.
2011-12-09 00:08:15 +00:00
akwizgran
2494ff1a1e
Let the plugin determine whether to flush the output stream after each
...
packet.
2011-12-08 22:13:35 +00:00
akwizgran
6962814eec
Log the exception class when logging exceptions.
2011-12-08 17:28:05 +00:00
akwizgran
9f0b865ba8
Plugins should use the executor rather than creating threads.
2011-12-08 16:57:24 +00:00
akwizgran
6e080bb35d
Dedicated executors for plugins and the connection recogniser.
2011-12-08 16:11:24 +00:00
akwizgran
4da7a685cd
Minor code cleanups.
2011-11-16 18:15:32 +00:00
akwizgran
73aa7d14d7
Split transport identifiers into two: TransportId (globally unique)
...
and TransportIndex (locally unique).
This is the first step towards forward secrecy. Also removed the
Writable interface and unnecessary user-defined types, moved various
constants to ProtocolConstants and renamed some classes.
2011-11-14 21:40:05 +00:00
akwizgran
681e82547e
Try to close sockets when an exception is caught.
2011-10-30 21:32:04 +00:00
akwizgran
48d638746c
Invitation API and two (untested) implementations.
2011-10-27 17:52:03 +01:00
akwizgran
64e2d7bca9
Refactoring: shorter class names.
2011-10-12 17:25:37 +01:00
akwizgran
c5d9d9fa64
Minor concurrency cleanups.
2011-10-12 17:11:31 +01:00
akwizgran
3a07d1b882
Plugins don't need their own copies of configs and properties.
2011-10-12 16:52:39 +01:00
akwizgran
a49a95347f
Use dedicated classes for transport properties and configs.
2011-10-11 17:28:47 +01:00
akwizgran
4059fbf863
Moved plugin API from transport package to plugins package and merged
...
transport subpackages.
2011-10-10 16:18:48 +01:00
akwizgran
125ae1b640
Always call the callback outside the plugin's lock.
2011-10-08 13:13:28 +01:00
akwizgran
5f40015ec2
Moved callback initialisation from start() to constructor so it can be
...
accessed outside the lock.
2011-10-08 12:46:35 +01:00
akwizgran
a3a5ebc14f
Removed unused exceptions. Also disabled output for ant tests.
2011-10-08 12:27:13 +01:00
akwizgran
4b1ffbe85b
Logging for plugins.
2011-10-07 13:59:19 +01:00
akwizgran
ea6beac011
Plugin refactoring.
2011-10-07 13:17:13 +01:00
akwizgran
3364604d03
Removed unused return value.
2011-10-07 11:29:01 +01:00
akwizgran
6d68fa5c4a
Check whether the socket has been set to null due to a failed
...
re-binding.
2011-10-06 19:32:55 +01:00
akwizgran
c08f6c4d1e
Merged transports' finish() and dispose() methods.
2011-10-06 19:00:33 +01:00
akwizgran
7a994114ff
Synchronize access to superclass members.
2011-10-06 18:16:08 +01:00
akwizgran
42e586abc4
Merged code from FilePlugin and SocketPlugin into a superclass.
2011-10-06 18:07:58 +01:00
akwizgran
3e522c81fa
Plugins should not modify their properties or configs.
2011-10-06 17:58:08 +01:00
akwizgran
bb9f03f1e8
Close and reopen the socket if necessary when the properties change.
2011-10-06 17:39:51 +01:00
akwizgran
5bc9baff95
Accept connections on the local socket.
2011-10-06 12:00:44 +01:00
akwizgran
1ee765a052
Resolve the address before binding.
2011-10-06 11:31:09 +01:00
akwizgran
11b571fd8f
Moved locking to the superclass to simplify subclasses.
2011-10-06 09:34:15 +01:00
akwizgran
b54668c50b
Renamed InvalidTransportException -> InvalidPropertiesException.
2011-10-06 09:18:13 +01:00
akwizgran
45fd4c9060
Simple TCP socket plugin (untested).
2011-10-06 09:17:22 +01:00