Ver Fonte

Added a getRpcConnection() method to expose the underlying
RPC support.

Paul Speed há 10 anos atrás
pai
commit
323daeb94f

+ 9 - 0
jme3-networking/src/main/java/com/jme3/network/service/rpc/RpcClientService.java

@@ -60,6 +60,15 @@ public class RpcClientService extends AbstractClientService {
     public RpcClientService() {
     }
 
+    /**
+     *  Returns the underlying RPC connection for use by other
+     *  services that may require a more generic non-client/server
+     *  specific RPC object with which to interact.
+     */
+    public RpcConnection getRpcConnection() {
+        return rpc;
+    }
+
     /**
      *  Used internally to setup the RpcConnection and MessageDelegator.
      */