KLib.NetCore.Protocol.ProtocolOpSsl useHTTPS() { var ssl = new KLib.NetCore.Protocol.ProtocolOpSsl(); UseCustom(ssl); return(ssl); }
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); }