xyz2k8 / wslay

The WebSocket library in C

Home Page:http://wslay.sourceforge.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wslay - The WebSocket library

Project Web: http://wslay.sourceforge.net/

Wslay is a WebSocket library written in C. It implements the protocol version 13 described in RFC 6455. This library offers 2 levels of API: event-based API and frame-based low-level API. For event-based API, it is suitable for non-blocking reactor pattern style. You can set callbacks in various events. For frame-based API, you can send WebSocket frame directly. Wslay only supports data transfer part of WebSocket protocol and does not perform opening handshake in HTTP.

Wslay supports:

  • Text/Binary messages.
  • Automatic ping reply.
  • Callback interface.
  • External event loop.

Wslay does not perform any I/O operations for its own. Instead, it offers callbacks for them. This makes Wslay independent on any I/O frameworks, SSL, sockets, etc. This makes Wslay protable across various platforms and the application authors can choose freely I/O frameworks.

See Autobahn test reports: server and client.

Requirements

Sphinx is used to generate man pages.

To build and run the unit test programs, the following packages are needed:

  • cunit >= 2.1

To build and run the example programs, the following packages are needed:

  • nettle >= 2.4

Build from git

Building from git is easy, but please be sure that at least autoconf 2.68 is used.:

$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make

About

The WebSocket library in C

http://wslay.sourceforge.net/

License:MIT License


Languages

Language:C 74.0%Language:C++ 15.1%Language:Python 5.3%Language:Makefile 2.3%Language:Shell 2.2%Language:Objective-C 1.0%Language:CSS 0.1%