High Level Secure Socket & Websocket API

The high level secure socket and secure WebSocket API provides a Lua API to the lower level Barracuda Embedded Web Server's portable socket API. The socket API is portable across all platforms supported by the Barracuda Embedded Web Server.

The socket API is also integrated with SharkSSL (our SSL/TLS client and server stack), thus making it extremely easy to create secure socket applications.

The socket API can also be used by the standalone Lua interpreter delivered with the Barracuda Embedded Web Server SDK. The standalone interpreter makes it easy to create host socket test programs that connect to your device(s).

Example:

The screenshot below is from the socket example included in the Barracuda Server Demo. ELIZA the Psychotherapist Telnet Server is implemented in 35 lines of Lua script code.

ELIZA is a computer program and an example of primitive natural language processing. The ELIZA socket example exposes the AI engine as a telnet server.

Eliza the Psychotherapist