Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
API by topic
Find native interfaces by subsystem. Start with the HTTP server and routing group for a new application.
[detail level 1234]
 ▼HTTP server and routingReceive requests, select virtual directories and pages, and generate responses
 Requests, responses, and routingNative HTTP request, response, session, and routing interfaces shared by BAS and BWS
 HTTP uploadsHttpUpload is a collection of classes that makes it easy to implement a remote file manager
 C Server PagesC Server Pages make it possible to insert C or C++ code into HTML template files by using special tags
 ▼Filesystems and I/OThe I/O interface provides a common set of functions for working with files stored in various media types such as data stored on a standard file system, ZIP files, and network files
 Standard I/O functionsThe BaFile API specifies a number of standard I/O functions for working with files
 ▼Clients and data protocolsMake outbound HTTP requests, exchange WebSocket or SMQ messages, and encode or parse data
 The HTTP(S) client library.The HttpClient library is the C side implementation for the Lua httpc library
 WebSocketsExchange browser messages through native asynchronous WebSocket callbacks
 ▼JSON and UBJSONJSON and UBJSON Reference Manual
 ▼JSON ReferenceJSON Reference Manual
 JSON Parser CallbackJSON Parser Callback Interface
 ▼UBJSON ReferenceUniversal Binary JSON Reference Manual
 UBJSON Parser CallbackUBJSON Parser Callback Interface
 XML parsingThis group documents the streaming xparser C API used by BAS's Lua XML binding
 ▼Microcontroller clients and portsSocket adapters, SMQ client, and bare-metal context support
 Portable socket adapterPlatform-specific TCP operations behind a common native interface
 ▼Native SMQ clientPublish and subscribe from C or C++ using a non-TLS SMQ connection
 Error codes returned by function SMQ_getMessage
 Response codes returned by function SMQ_getMessage
 C API
 ▼Bare Metal Systems
 Context ManagerThe SeCtx library makes it possible to use sequential functions in an event driven system such as a bare metal (non RTOS) system
 ▼Authentication and TLS integrationProtect routes with Authentication and authorization and accept encrypted connections with HttpSharkSslServCon
 Authentication and authorizationPlease see Authenticating and authorizing users for an introduction to the classes in the Authentication group
 ▼Lua embedding and bindingsBalua.h provides the public C API for creating, destroying, and configuring a BAS Lua/LSP VM
 Weak Table referenceFunctions designed to be similar to using luaL_ref(L, LUA_REGISTRYINDEX), lua_rawgeti(L, LUA_REGISTRYINDEX, ix), and luaL_unref(L, LUA_REGISTRYINDEX, ix), but with weak references
 ▼Auxiliary APIOptional bindings implemented in xrc/lua and declared in inc/lxrc.h
 The Lua Thread LibrarySee Advanced Lua Bindings, section Calling Lua Code Asynchronously From C Code for how to use this class
 ▼Threads, memory, and utilitiesUse the target port's thread and mutex interfaces, allocation contracts, and shared utilities
 Thread handling
 Dynamic memory handling.
 Miscellaneous library functionsThis header file contains functions that are used by the web-server
 Formatted output