libevent hclint
发布时间
阅读量:
阅读量
在开发一个基于libevent的HTTP客户端过程中,遇到了一些技术难题。虽然能够成功建立连接,但在发送HTTP请求之后却没有任何响应。在Windows和Linux两个平台环境下均进行了测试,结果一致。这可能与我的使用方式存在关联。
请为我的最终论文《Qt Quick 图像处理实例之美图秀秀(附源码下载)》投上宝贵的一票,感谢支持。
参考网络上的示例进行了调整后,代码已在Windows系统下正常运行。以下是相关代码内容:
#include <stdlib.h>
#include <string.h>
#include "event2/event.h"
#include "event2/http.h"
#include "event2/buffer.h"
#include "event2/http_struct.h"
#include "event2/dns.h"
struct download_context{
struct evhttp_uri * uri;
struct event_base * base;
struct evdns_base * dnsbase;
全部评论 (0)
还没有任何评论哟~
