Example #1
0
File: Http.cs Project: Skye347/KLib
        public static void Init()
        {
            HTTPOp protocolInstance = new HTTPOp();

            protocolInstance.useHTTP();
            Core newCore = new UniAsynCore();

            newCore.SetClient(protocolInstance, false);
            protocolInstance.BindCore(newCore);
            currentCore = newCore;
            HTTPOp httpsProtocol = new HTTPOp();

            sslProtocol = httpsProtocol.useHTTPS();
            httpsCore   = new UniAsynCore();
            httpsCore.SetClient(httpsProtocol, false);
            httpsProtocol.BindCore(httpsCore);
        }