61 Commits

Author SHA1 Message Date
Paul Speed
dd65580bf3 Pre-register the inner class as well. A cut paste
error from my originals.
2015-04-26 02:27:27 -04:00
Paul Speed
8b34e4890a Fixed a comment to be more accurate with respect
to handler method argument types.
Fixed a small bug in how auto-detect worked.  It
was too greedy in looking for two-argument methods
and would somehow allow methods that took a first
argument that was not a connection type.
2015-04-26 02:26:47 -04:00
Paul Speed
1145f99d03 Added a service that will send the server's serializer
registration set to each new client that connects.  The
client-side version of this service will then register them
all.  This means that serialized classes need only be registered
on the server.
I've modified DefaultClient and DefaultServer to register these
services by default because they make other services easier to
write and because they will save people lots of trouble.
I'm 90% sure there are no bad side-effects for people who choose
to continue doing things the old way but it may depend on when
they register their serializers in relations to creating the
client and server objects.
2015-04-26 01:19:38 -04:00
Paul Speed
35155c6b5b Integrated the new service manager stuff with Client and
Server.  (Untested at the moment but straight forward.)
Also fixed a small but silent bug in DefaultServer when
closing out endpoints that were never fully connected.
Garbage was left around in the "connecting" data structure.
2015-04-26 00:57:02 -04:00
Paul Speed
1eb2ba7276 Adding an initial implementation for a service manager module
with custom subclasses and service interfaces for client 
services and server-side services (HostedServices).
This code is a copy and refactoring of code I developed for
Mythruna... it worked there but I haven't tested it yet in its
new form.  Things may change as I integrate this more closely
with the core Client and Server classes.  I wanted to get it
into source control first.
Also included an RPC service implementation which can serve
as the underpinning for other things.
Coming soon: serializer registration service and a simple
RMI service based on the RPC layer.
2015-04-26 00:24:51 -04:00
Paul Speed
9abedf284e Added a message that can be used to compile and
send the serializer registry... and then register
them on the other end.
2015-04-26 00:09:24 -04:00
Paul Speed
c9eaeeea12 Added some message delegator util classes that
makes it easier to handle network messages.  These
delegators can introspect a delegate type to find
message-type specific handler methods.  This mapping
can be done automatically or performed manually.
2015-04-25 23:47:26 -04:00
NemesisMate
2aa6f9f521 Fixed BufferUnderflowException
Fixed the exception occurring when using this serializer. More commented here:

http://hub.jmonkeyengine.org/t/savableserializer-and-client-bufferunderflowexception/31774
2015-02-26 14:41:29 +01:00
shadowislord
f31911f039 * Fix java 8 syntax error in UdpEndpoint 2014-05-31 17:36:49 -04:00
shadowislord
6b12d5c638 * Fix many javadoc errors mostly related to incorrect HTML or missing references 2014-05-31 13:12:46 -04:00
Normen Hansen
a16857c8f4 switch to gradle layout 2014-03-21 02:32:11 +01:00