suitmyself / cos-cpp-sdk-v4 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tencentyun/cos-cpp-sdk-v4
C++ SDK for COS v4
This project forked from tencentyun/cos-cpp-sdk-v4
C++ SDK for COS v4
1、开发环境 依赖静态库: curl jsoncpp boost_system boost_thread (在lib文件夹下) 依赖动态库: ssl crypto rt z (需要安装) (1)安装openssl的库和头文件 http://www.openssl.org/source/ (2)安装curl的库和头文件 http://curl.haxx.se/download/curl-7.43.0.tar.gz (3)安装jsoncpp的库和头文件 https://github.com/open-source-parsers/jsoncpp (4)安装boost的库和头文件 http://www.boost.org/ (5)安装cmake工具 http://www.cmake.org/download/ 2、本地编译说明: 修改CMakeList.txt文件中,指定本地boost头文件路径,修改如下语句: SET(BOOST_HEADER_DIR "/root/boost_1_61_0") 3、配置文件说明 "Region":"sh", //所属COS区域,上传下载操作的URL均与该参数有关 "SignExpiredTime":360, //签名超时时间,单位:秒 "CurlConnectTimeoutInms":10000, //CURL连接超时时间,单位:毫秒 "CurlGlobalConnectTimeoutInms":360000, //CURL连接执行最大时间,单位:毫秒 "UploadSliceSize":1048576, //分片大小,单位:字节,可选的有512k,1M,2M,3M(需要换算成对应字节数) "IsUploadTakeSha":0, //上传文件时是否需要携带sha值 "DownloadDomainType":2, //下载域名类型:1: cdn, 2: cos, 3: innercos, 4: self domain "SelfDomain":"", //自定义域名 "UploadThreadPoolSize":5 //单文件分片上传线程池大小 "AsynThreadPoolSize":2 //异步上传下载线程池大小 "LogoutType":0 //打印输出,0:不输出,1:输出到屏幕,2:打印syslog "down_thread_pool_max_size":10 //下载文件到本地的线程池的最大大小,默认值为10,有效值的范围:(0,10] "down_slice_size":4194304 //下载文件到本地的分片大小,range的范围,默认值4M,有效值范围:[4k,20M]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.