0
在开发BT客户端时候,考虑获取TrackerServer的Peers信息时,使用自己之前开发的HTTPDownload类,偶尔失败。究其原因,无时间追踪。开始考虑封装使用Curl来实现。
等有时间,再来分析一下Curl的功能,的确很强大,对HTTP,FTP,SSL等协议都封装的非常好。他日定可以派上大用场。

代码使用如下:


类代码如下:

TTracker.h


实现代码TTracker.c

Tags: , , | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]