Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嘿伙计!我正在寻找一个关于如何实现基于 libevent 的长轮询或 http 流服务器的好教程。谷歌出现的几个例子要么有错误,要么不正是我想要的。也许你们中的任何人都已经使用过 libevent 和 longpolling/http-Stream/Comet 并且可以提供一些示例?
提前致谢!
这是另一个示例:https ://github.com/ideawu/icomet ,一个使用 libevent 2 构建的长轮询彗星服务器。
下面是一个例子:http ://code.google.com/p/libevent-longpolling/source/browse/