Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ application development framework, to help developers create and deploy applications very fast and more simple
C++ C Shell CSS Objective-C HTML Other
branch: master
Failed to load latest commit information.
cdb clean history
contrib fix bug on partial response (final)
doc fix bug on partial response (final)
examples Setting for FrameworkBenchmarks participations
include start HTTP/2 implementation
m4 start HTTP/2 implementation
openwrt/package fix bug on partial response (final)
src/ulib start HTTP/2 implementation
tests start HTTP/2 implementation
.travis.yml clean history
AUTHORS clean history
COPYING clean history
ChangeLog clean history
INSTALL clean history
LICENSE clean history
LICENSE.OpenSSL clean history
Makefile.am fix bug on partial response (final)
Makefile.in fix bug on partial response (final)
NEWS clean history
README clean history
README.LZO clean history
README.cdb clean history
README.configure clean history
README.md Setting for FrameworkBenchmarks participations
README.zopfli clean history
THANKS clean history
TODO clean history
ULib.m4 clean history
ULib.spec.in clean history
aclocal.m4 clean history
autogen.sh clean history
config.guess clean history
config.sub clean history
configure start HTTP/2 implementation
configure.ac start HTTP/2 implementation
configure.help clean history
configure_h.awk clean history
configure_log.awk clean history
depcomp clean history
install-sh clean history
ltmain.sh start HTTP/2 implementation
missing clean history
rpm.sh clean history
rpm.sh.in clean history
rpmpkgreq.lst clean history
rpmpkgreq.lst.suse clean history
shtool clean history
ylwrap clean history

README.md

ULib - C++ library

Travis CI: Build Status Coverity Scan: Coverity Scan Build Status

ULib is a highly optimized class framework for writing C++ applications. I wrote this framework as my tool for writing applications in various contexts. It is a result of many years of work as C++ programmer. I think, in my opinion, that its strongest points are simplicity, efficiency and sophisticate debugging.

ULib is meant as a very light-weight C++ library to facilitate using C++ design patterns even for very deeply embedded applications, such as for systems using uclibc along with posix threading support. For this reason, ULib disables language features that consume memory or introduce runtime overhead, such as rtti and exception handling, and assumes one will mostly be linking applications with other pure C based libraries rather than using the overhead of the standard C++ library and other similar class frameworks.

It include as application example a powerful search engine with relative web interface and a multi purpose server (plugin oriented) which results, out of John Fremlin accurate investigations, to be one of the fastest web application frameworks for serving small dynamic webpages (and also make easier the usage of shell scripts for CGI application)

userver (_tcp | _ssl | _ipc) application server (plugin oriented)

The current version offers the following features :

  • HTTP/1.0 and 1.1 protocols supported.
  • Persistent connections for HTTP/1.1 and Keep-Alive support for HTTP/1.0.
  • Browser cache management (headers: If-Modified-Since/Last-modified).
  • Chunk-encoding transfers support.
  • HTTP multi-range request support.
  • Memory caching of document root for (small) static pages with smart gzip compression and CSS/JS reduction.
  • Support for automatic update of caching document root with inotify (on Linux).
  • Support for pipelining.
  • Support for virtual hosts (also with SSL).
  • Support for basic/digest authentication.
  • Support for directory listings via basic/digest authentication.
  • Support for uri protection.
  • Support for aliases/redirection.
  • Support for switch the site to a maintenance page only.
  • Support for overriden of error messages by local document (ErrorDocument/40x|500.html).
  • Support for RewriteRule (lighttpd-like) that check for file existence as they do on Apache, some CMS (SilverStripe) require it.
  • Support for (apache-like) log NCSA extended/combined format
  • Support for JSONRequest.
  • Accept HTTP uploads up to 4 GB without increasing memory usage.
  • General CGI support (run any CGI script) with automatic output compression (using gzip method).
  • CGI support for shell script processes (with automatic management of form and cookie).
  • CGI support for the X-Sendfile feature and also supports X-Accel-Redirect headers transparently.
  • Support for minify HTML CGI output by wrapping google page speed SDK.
  • Support for running JavaScript code by wrapping google V8 JavaScript Engine.
  • HTTP pseudo-streaming for FLV video managed transparently.
  • C Servlet Support with libtcc (if available) as a backend for dynamic code generation (experimental).
  • Preforking mode to improve concurrency with dedicated process for long-time request.
  • Support for Windows (without preforking).
  • Customizable builds (you can remove unneeded functionality).
  • Requests cut in phases for modular architecture (apache-like).
  • Configuration file with dedicated section.
  • Built-in modules :
    • mod_echo : echo features.
    • mod_rpc : generic Remote Procedure Call.
    • mod_http : core features, static file handler and dynamic page (ULib Servlet Page).
    • mod_ssi : Server Side Includes support with enhanced #set, direct include and #exec servlet (C/ULib Servlet Page).
    • mod_nocat : captive portal implementation.
    • mod_proxy : multi-features reverse proxy with websocket support.
    • mod_tsa : server side Time Stamp support.
    • mod_soap : generic SOAP server services support.
    • mod_fcgi : third-party applications support thru FastCGI interface.
    • mod_scgi : module that implements the client side of the SCGI protocol (experimental).
    • mod_shib : web single sign-on support (experimental).
    • mod_geoip : geolocation support (experimental).
    • mod_stream : simple streaming support (experimental).
    • mod_socket : Web Socket application framework (experimental).
  • Security protection :
  • Immune to Slow Read DoS attack
  • High SSL server quality score

It is the main software component of city of Florence wireless network

We're hoping to get included in TechEmpower's next round of benchmarks. A pull request has been already issued.

ULib is normally built and installed as a set of shared object libraries and header files. These libraries and headers are installed using directories selected through a "configure" script that has been prepared with automake and autoconf. As such, they should build and install similarly to and in a manner compatible and consistent with most other GNU software. ULib is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Comments and suggestions are welcome.

stefano casazza <stefano.casazza@gmail.com>
Something went wrong with that request. Please try again.