소스 검색

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

Paul Speed 10 년 전
부모
커밋
323daeb94f
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      jme3-networking/src/main/java/com/jme3/network/service/rpc/RpcClientService.java

+ 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.
      */