首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

有用过libcurl的没? 可以做http server吗?解决方法

2012-04-12 
有用过libcurl的没? 可以做http server吗?有用过libcurl的没? 可以做http server吗?可以大致说一下不?[解

有用过libcurl的没? 可以做http server吗?
有用过libcurl的没? 可以做http server吗?
可以大致说一下不?

[解决办法]
不能作为服务器
PC上直接用HTTP服务器
arm上可以移植minihttpd等
[解决办法]
做http server可以用libevent啊。很简单的。
大概这样就可以了:

C/C++ code
event_init();evhttp_start();evhttp_set_timeout();evhttp_set_gencb();event_dispatch();evhttp_free();
[解决办法]
curl是客户端开发库,写服务端用API+状态机好了。

热点排行