WebSocket的开源实现-noPoll
2014-02-12 09:33:48 阿炯

noPoll是一个WebSocket的开源实现,使用ANSI C编写,可用于构建纯WebSocket解决方案和为已有的面向TCP的应用程序提供WebSocket支持。采用C语言开发并在LGPL协议下授权。


noPoll is a OpenSource WebSocket implementation (RFC 6455), written in ansi C, that allows building pure WebSocket solutions or to provide WebSocket support to existing TCP oriented applications.

noPoll provides support for WebSocket (ws://) and TLS (secure) WebSocket (wss://), allowing message based (handler notified) programming or stream oriented access.

noPoll was written to have a clean, easy to use and integrate library.

Features


Context based API design making the library stateless. Support to run several execution contexts in the same process.

Support for stream based API and message based API (handler notified)

Robust and well tested implementation checked by a strong regression test to ensure the library keeps on working as new features are added.

Flexible design that allows its integration into a external loop or to use its own waiting loop

Support for port share which allows running native protocol and WebSocket protocol on the same port.


最新版本:0.2
这是个稳定版本。此版本包括了一些 bug 修复;添加了 noPoll 连接器重试 EWOULD BLOCK  和EINPROGRESS 事件的新机制。

项目主页:http://www.aspl.es/nopoll/