Cxxtools overview
Cxxtools is a collection of general-purpose C++ classes.
It includes classes for:
- argument parsing
- logging
- wrappers for threading (pthreads)
- networking with tcp and udp including iostream-based classes
- std::ostream for md5-calculation
- std::ostream-hexdumper
- std::ostream, which duplicates output (like tee)
- wrappers for fork(2) and pipe(2)
- parser for ini files
- parser for property files
- policy based smartpointer
- wrappers for dlopen(2) and dlsym(2)
- std::istream based http client
- uuencoder-std::ostream
- classes to create mime messages for sending mail with attachements or as html-formatted mail
- template based fast signal/slot-classes
- template for pools
- parser for http-query-parameters e.g. for cgi
- ostream-filter for counting bytes passed through it
- wrappers for atomic operations
- std::ostream based wrapper around iconv(3)
- ...
Code examples
| arg.cpp | Argument-parser (argc, argv) |
| cgi.cpp | cgi in c++ (don't use it - use tntnet instead ;-) ) |
| dir.cpp | read directory |
| dlloader.cpp | load shared library |
| dynbuffer.cpp | dynamic exception-safe buffer |
| getini.cpp | read ini-files |
| hd.cpp | hex-dumper |
| httprequest.cpp | http-client |
| iconv.cpp | code-converter as a std::iostream |
| log.cpp | logging |
| logsh.cpp | logging for shell |
| md5sum.cpp | md5-calculation |
| multifstream.cpp | read multiple files with a single std::istream |
| netcat.cpp | send data through a tcp-socket |
| netio.cpp | simple network-benchmark-tool |
| netmsg.cpp | send messages with udp |
| pipestream.cpp | std::iostream on top of pipe(2) |
| pool.cpp | pool of objects (e.g. connections) |
| thread.cpp | threading |
