How openlightingproject/libartnet works
Project type and purpose
• Libartnet is an open-source C library implementing the ArtNet protocol, used to send and receive DMX (lighting control) data over IP networks.
• It exposes a simple C API to user applications, handles packet framing/parsing, and relies on UDP sockets for network I/O.
File structure
• Top‐level files:
• configure.ac, Makefile.am, Doxyfile → autotools build and docs
• msvc/... → Visual Studio solution and project files for Windows builds
• debian/... → Debian packaging scripts
• artnet/ directory: the core library sources and headers, organized by functionality:
• artnet.c / artnet.h → public API entry points (init, send, receive)
• network.c → UDP socket creation, send/receive wrappers
• packets.h → ArtNet packet definitions and constants
• transmit.c → DMX packet building for send
• receive.c → packet parsing and dispatch to callbacks
• tod.c → time‐of‐day (TOD) packet handling
• misc.c → utility functions, common.h / misc.h
README for additional insights
• Confirms it’s a library, details build instructions for Unix (autotools) and Windows (MSVC).