Beispiel #1
0
        KLib.NetCore.Protocol.ProtocolOpSsl useHTTPS()
        {
            var ssl = new KLib.NetCore.Protocol.ProtocolOpSsl();

            UseCustom(ssl);
            return(ssl);
        }
Beispiel #2
0
        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);
        }