Ejemplo n.º 1
0
Archivo: test.cs Proyecto: demonxjj/TCE
        public static ServerProxy 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);
            ServerProxy   prx  = new ServerProxy(conn);

            return(prx);
        }
Ejemplo n.º 2
0
Archivo: test.cs Proyecto: demonxjj/TCE
        public static ServerProxy createWithProxy(RpcProxyBase proxy)
        {
            ServerProxy prx = new ServerProxy(proxy.conn);

            return(prx);
        }