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

你可能感兴趣的:(开发工具)