static void Main(string[] args)
        {
            ProxyClient client   = new ProxyClient();
            var         response = client.GetData();

            System.Console.WriteLine(response);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ProxyClient proxy = new ProxyClient();

            Console.WriteLine("Data from Proxy Client = {0}", proxy.GetData());

            Console.ReadKey();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var proxy = new ProxyClient(56636, 0x103f);

            proxy.Start("127.0.0.1", 3000);
        }
Beispiel #4
0
        protected override Variable Evaluate(ParsingScript script)
        {
            List <Variable> args = script.GetFunctionArgs();

            Utils.CheckArgs(args.Count, 2, m_name);

            string username = args[0].AsString();
            string password = args[1].AsString();
            string callBack = args[2].AsString();

            CustomFunction callbackFunction = ParserFunction.GetFunction(callBack, null) as CustomFunction;

            if (callbackFunction == null)
            {
                throw new ArgumentException("Error: Couldn't find function [" + callBack + "]");
            }

            ProxyClient.QueueLogin(callbackFunction, username, password, true);
            return(Variable.EmptyInstance);
        }
Beispiel #5
0
        protected override Variable Evaluate(ParsingScript script)
        {
            List <Variable> args = script.GetFunctionArgs();

            Utils.CheckArgs(args.Count, 3, m_name);

            string request  = Utils.GetSafeString(args, 0);
            string load     = Utils.GetSafeString(args, 1);
            string callBack = Utils.GetSafeString(args, 2);

            CustomFunction callbackFunction = ParserFunction.GetFunction(callBack, null) as CustomFunction;

            if (callbackFunction == null)
            {
                throw new ArgumentException("Error: Couldn't find function [" + callBack + "]");
            }

            ProxyClient.QueueRequest(callbackFunction, request, load);
            return(Variable.EmptyInstance);
        }