Example #1
0
File: test.cs Project: demonxjj/TCE
        public static ITerminalGatewayServerProxy create(string host, int port, bool ssl_enable)
        {
            int type = RpcConstValue.CONNECTION_SOCK;

            if (ssl_enable)
            {
                type |= RpcConstValue.CONNECTION_SSL;
            }
            RpcConnection conn = RpcCommunicator.instance().createConnection(type, host, port);
            ITerminalGatewayServerProxy prx = new ITerminalGatewayServerProxy(conn);

            return(prx);
        }
Example #2
0
File: test.cs Project: demonxjj/TCE
        public static ITerminalGatewayServerProxy createWithProxy(RpcProxyBase proxy)
        {
            ITerminalGatewayServerProxy prx = new ITerminalGatewayServerProxy(proxy.conn);

            return(prx);
        }