Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
Lua embedding and bindings

BAS embeds Lua and Lua Server Pages (LSP). Use the BAS C API to create and close the VM and connect it to your server and I/O resources. Use the Lua C API and BAS binding interfaces to expose native services. This Lua integration requires BAS and is not part of BWS.

Follow the VM resource and ownership requirements in BaLua_param. Ordinary Lua/C bindings enter with the server mutex held. Blocking native work must release and reacquire that mutex as described in the binding guide. Deliver events from other threads through the documented ThreadJob/LThreadMgr path.

For an existing host, use Mako Server or Standalone Xedge and retain its startup and cleanup sequence. See Native integration examples for synchronous and asynchronous binding examples.