A set of common code used in AVSystem for projects written in C.
Currently the included components are:
- Data structures
avs_buffer
- simple data buffer with circular-like semanticsavs_list
- lightweight, generic and type-safe implementation of a singly linked list, with API optimized for ad-hoc usageavs_rbtree
- basic implementation of a red-black binary search treeavs_vector
- generic implementation of a C++-style vector (dynamic array)
- Networking framework
avs_coap
- implementation of the Constrained Application Protocol (CoAP)avs_http
- minimal implementation of a Hypertext Transfer Protocol (HTTP) clientavs_net
- abstraction layer for TCP, UDP, SSL/TLS and DTLS network sockets, as well as DNS resolution and URL parsing
- Other modules
avs_algorithm
- currently contains a base64 encoder and decoderavs_log
- simple logging frameworkavs_stream
- generic framework for I/O streams; includes pre-implemented streams that can be used through its unified API:md5.h
- calculating MD5 hashesnetbuf.h
- buffered network I/Ostream_file.h
- file I/Ostream_inbuf.h
- read-only wrapper for raw memory buffersstream_membuf.h
- in-memory stream optimized for a single-message write-then-read cyclestream_outbuf.h
- write-only wrapper for raw memory buffers
avs_unit
- simple and easy to use unit testing frameworkavs_utils
- currently contains utility function for handling time values, psudorandom number generation and string tokenization
Most of the library is written in standard and portable C99. There are some dependencies on POSIX APIs, but there are provisions for replacing them when necessary (see the compat
directory for details).
avs_unit
relies on some GCC-isms and is unlikely to work with any compiler that is not based on either GCC or Clang.
The code is available under Apache 2.0 License.
- Your feedback is important! Feel free to create an Issue here on GitHub.
- If you would like to contribute to avs_commons just send us a pull request.