curl

1.下载

  2013-02-07  v7.29.0

   http://curl.haxx.se/download.html


   测试发现我的工程在ios4.3模拟器和真机上curl返回35错误,CURLE_SSL_CONNECT_ERROR。在ios5,6上正常。


10.使用multi调用,也会阻塞。

   CURLMcode mcode= curl_multi_add_handle(curlm_, curl);
    
    int running = 0;
    while(CURLM_CALL_MULTI_PERFORM == curl_multi_perform(curlm_, &running));
    
    int count=0;
    while (running)
    {
        timeval tv;
        tv.tv_sec = 1;
        tv.tv_usec = 0;
        
        int max_fd;
        fd_set fd_read;
        fd_set fd_write;
        fd_set fd_except;
        
        FD_ZERO(&fd_read);
        FD_ZERO(&fd_write);
        FD_ZERO(&fd_except);
        
        curl_multi_fdset(curlm_, &fd_read, &fd_write, &fd_except, &max_fd);
        int return_code = select(max_fd + 1, &fd_read, &fd_write, &fd_except, &tv);
        if (-1 == return_code)
        {
            break;
        }
        else
        {
            while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(curlm_, &running))
            {
            }
        }
        
        if(++count>100)
        {
            break;
        }
    }
    
    CCLog("count: %d",count);
    
    curl_multi_remove_handle(curlm_, curl);
    curl_easy_cleanup(curl);


http://hi.baidu.com/jjxiaoyan/item/b187020d957a2fdcdde5b0f5


如何在android上编译curl库 

http://bloodysofiya.blog.163.com/blog/static/11656234320108704954344/


首先安装一个叫做arm-linux-gnueabi的cross compiler,apt-get安装就好了
./configure --host=arm-linux CC=arm-linux-eabi-gcc --prefix=/opt/curl
然后make就好了

http://bbs.chinaunix.net/thread-3571745-1-1.html


成功在android平台用ndk上编译libcurl+openssl支持https

http://piggyq.com/pen/compile-libcurl-and-openssl-on-android-using-ndk.html




non-numeric second argument to `wordlist' function:


Ubuntu下ndk-build编译C++出以上错误,

 这个error,需要修改 NDK解压路径中/build/gmsl/ __gmsl文件的第512行 把i nt_encode = $(__gmsl_tr1)$(wordlist 1, $1,$(__gmsl_input_int)) 改成: int_encode = $(__gmsl_tr1)$(wordlist 1,$(words $1),$ (__gmsl_input_int))即可。


Android ndk下编译libcurl
http://blog.csdn.net/vrix/article/details/7683212


android 编译 LIBCURL 库

http://blog.csdn.net/maikforever/article/details/6638172


android ndk1.6编译libcurl方法

http://bbs.csdn.net/topics/360096682


C++使用libcurl做HttpClient 

http://blog.csdn.net/huyiyang2010/article/details/7664201

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值