Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1490862
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

分类: 项目管理

2015-02-04 11:38:31

1. libcurl
error codes:  http://curl.haxx.se/libcurl/c/libcurl-errors.html
all functions:  http://curl.haxx.se/libcurl/c/allfuncs.html

点击(此处)折叠或打开

  1. typedef enum {
  2.   CURLE_OK = 0,
  3.   CURLE_UNSUPPORTED_PROTOCOL, /* 1 */
  4.   CURLE_FAILED_INIT, /* 2 */
  5.   CURLE_URL_MALFORMAT, /* 3 */
  6.   CURLE_NOT_BUILT_IN, /* 4 - [was obsoleted in August 2007 for
  7.                                     7.17.0, reused in April 2011 for 7.21.5] */
  8.   CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
  9.   CURLE_COULDNT_RESOLVE_HOST, /* 6 */
  10.   CURLE_COULDNT_CONNECT, /* 7 */
  11.   CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */
  12.   CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
  13.                                     due to lack of access - when login fails
  14.                                     this is not returned. */
  15.   CURLE_FTP_ACCEPT_FAILED, /* 10 - [was obsoleted in April 2006 for
  16.                                     7.15.4, reused in Dec 2011 for 7.24.0]*/
  17.   CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
  18.   CURLE_FTP_ACCEPT_TIMEOUT, /* 12 - timeout occurred accepting server
  19.                                     [was obsoleted in August 2007 for 7.17.0,
  20.                                     reused in Dec 2011 for 7.24.0]*/
  21.   CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
  22.   CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
  23.   CURLE_FTP_CANT_GET_HOST, /* 15 */
  24.   CURLE_OBSOLETE16, /* 16 - NOT USED */
  25.   CURLE_FTP_COULDNT_SET_TYPE, /* 17 */
  26.   CURLE_PARTIAL_FILE, /* 18 */
  27.   CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
  28.   CURLE_OBSOLETE20, /* 20 - NOT USED */
  29.   CURLE_QUOTE_ERROR, /* 21 - quote command failure */
  30.   CURLE_HTTP_RETURNED_ERROR, /* 22 */
  31.   CURLE_WRITE_ERROR, /* 23 */
  32.   CURLE_OBSOLETE24, /* 24 - NOT USED */
  33.   CURLE_UPLOAD_FAILED, /* 25 - failed upload "command" */
  34.   CURLE_READ_ERROR, /* 26 - couldn't open/read from file */
  35.   CURLE_OUT_OF_MEMORY, /* 27 */
  36.   /* Note: CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error
  37.            instead of a memory allocation error if CURL_DOES_CONVERSIONS
  38.            is defined
  39.   */
  40.   CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */
  41.   CURLE_OBSOLETE29, /* 29 - NOT USED */
  42.   CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */
  43.   CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
  44.   CURLE_OBSOLETE32, /* 32 - NOT USED */
  45.   CURLE_RANGE_ERROR, /* 33 - RANGE "command" didn't work */
  46.   CURLE_HTTP_POST_ERROR, /* 34 */
  47.   CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
  48.   CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */
  49.   CURLE_FILE_COULDNT_READ_FILE, /* 37 */
  50.   CURLE_LDAP_CANNOT_BIND, /* 38 */
  51.   CURLE_LDAP_SEARCH_FAILED, /* 39 */
  52.   CURLE_OBSOLETE40, /* 40 - NOT USED */
  53.   CURLE_FUNCTION_NOT_FOUND, /* 41 */
  54.   CURLE_ABORTED_BY_CALLBACK, /* 42 */
  55.   CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
  56.   CURLE_OBSOLETE44, /* 44 - NOT USED */
  57.   CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */
  58.   CURLE_OBSOLETE46, /* 46 - NOT USED */
  59.   CURLE_TOO_MANY_REDIRECTS , /* 47 - catch endless re-direct loops */
  60.   CURLE_UNKNOWN_OPTION, /* 48 - User specified an unknown option */
  61.   CURLE_TELNET_OPTION_SYNTAX , /* 49 - Malformed telnet option */
  62.   CURLE_OBSOLETE50, /* 50 - NOT USED */
  63.   CURLE_PEER_FAILED_VERIFICATION, /* 51 - peer's certificate or fingerprint
  64.                                      wasn't verified fine */
  65.   CURLE_GOT_NOTHING, /* 52 - when this is a specific error */
  66.   CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
  67.   CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
  68.                                     default */
  69.   CURLE_SEND_ERROR, /* 55 - failed sending network data */
  70.   CURLE_RECV_ERROR, /* 56 - failure in receiving network data */
  71.   CURLE_OBSOLETE57, /* 57 - NOT IN USE */
  72.   CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */
  73.   CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
  74.   CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */
  75.   CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized/bad encoding */
  76.   CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
  77.   CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
  78.   CURLE_USE_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
  79.   CURLE_SEND_FAIL_REWIND, /* 65 - Sending the data requires a rewind
  80.                                     that failed */
  81.   CURLE_SSL_ENGINE_INITFAILED, /* 66 - failed to initialise ENGINE */
  82.   CURLE_LOGIN_DENIED, /* 67 - user, password or similar was not
  83.                                     accepted and we failed to login */
  84.   CURLE_TFTP_NOTFOUND, /* 68 - file not found on server */
  85.   CURLE_TFTP_PERM, /* 69 - permission problem on server */
  86.   CURLE_REMOTE_DISK_FULL, /* 70 - out of disk space on server */
  87.   CURLE_TFTP_ILLEGAL, /* 71 - Illegal TFTP operation */
  88.   CURLE_TFTP_UNKNOWNID, /* 72 - Unknown transfer ID */
  89.   CURLE_REMOTE_FILE_EXISTS, /* 73 - File already exists */
  90.   CURLE_TFTP_NOSUCHUSER, /* 74 - No such user */
  91.   CURLE_CONV_FAILED, /* 75 - conversion failed */
  92.   CURLE_CONV_REQD, /* 76 - caller must register conversion
  93.                                     callbacks using curl_easy_setopt options
  94.                                     CURLOPT_CONV_FROM_NETWORK_FUNCTION,
  95.                                     CURLOPT_CONV_TO_NETWORK_FUNCTION, and
  96.                                     CURLOPT_CONV_FROM_UTF8_FUNCTION */
  97.   CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing
  98.                                     or wrong format */
  99.   CURLE_REMOTE_FILE_NOT_FOUND, /* 78 - remote file not found */
  100.   CURLE_SSH, /* 79 - error from the SSH layer, somewhat
  101.                                     generic so the error message will be of
  102.                                     interest when this has happened */

  103.   CURLE_SSL_SHUTDOWN_FAILED, /* 80 - Failed to shut down the SSL
  104.                                     connection */
  105.   CURLE_AGAIN, /* 81 - socket is not ready for send/recv,
  106.                                     wait till it's ready and try again (Added
  107.                                     in 7.18.2) */
  108.   CURLE_SSL_CRL_BADFILE, /* 82 - could not load CRL file, missing or
  109.                                     wrong format (Added in 7.19.0) */
  110.   CURLE_SSL_ISSUER_ERROR, /* 83 - Issuer check failed. (Added in
  111.                                     7.19.0) */
  112.   CURLE_FTP_PRET_FAILED, /* 84 - a PRET command failed */
  113.   CURLE_RTSP_CSEQ_ERROR, /* 85 - mismatch of RTSP CSeq numbers */
  114.   CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
  115.   CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
  116.   CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
  117.   CURL_LAST /* never */
  118. } CURLcode;

2. libevent, 
docment: 

3. 

4. 


阅读(5052) | 评论(0) | 转发(1) |
0

上一篇:luaxml在openwrt下的移植和应用

下一篇:没有了

给主人留下些什么吧!~~