From 14e84a4dd77691c760bc7b1cdccfbd1308932c62 Mon Sep 17 00:00:00 2001 From: Paul Speed Date: Sat, 5 Dec 2015 04:15:48 -0500 Subject: [PATCH] Added a constructor that just takes the service's default channel. --- .../java/com/jme3/network/service/rmi/RmiHostedService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java index 997658a77..ebd0e5908 100644 --- a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java +++ b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java @@ -89,6 +89,10 @@ public class RmiHostedService extends AbstractHostedService { this((short)-1, (byte)MessageConnection.CHANNEL_DEFAULT_RELIABLE, true); } + public RmiHostedService( byte defaultChannel ) { + this((short)-1, defaultChannel, true); + } + public RmiHostedService( short rmiId, byte defaultChannel, boolean autoHost ) { this.rmiId = rmiId; this.defaultChannel = defaultChannel;