Exemplo n.º 1
0
Arquivo: test.cs Projeto: demonxjj/TCE
        public static BaseServerProxy 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);
            BaseServerProxy prx  = new BaseServerProxy(conn);

            return(prx);
        }
Exemplo n.º 2
0
Arquivo: test.cs Projeto: demonxjj/TCE
        public static BaseServerProxy createWithProxy(RpcProxyBase proxy)
        {
            BaseServerProxy prx = new BaseServerProxy(proxy.conn);

            return(prx);
        }