How skala13x/libxutils works
libxutils is a cross-platform C runtime library, not a single end-user application. Its central workflow is an application configuring the event-driven networking API, which uses sockets and the event loop to handle protocol traffic and invoke callbacks; HTTP, WebSocket, MDTP, and raw sockets are documented modes. The library also provides independent data, cryptography, and system building blocks. Relationships for unsampled modules are included only where the README or SOURCE INDEX supports them; the excerpts do not expose all networking dispatch details.
Main entry points: api.c Network API · json.c JSON processing · crypt.c Crypto dispatch · rsa.c RSA
Components 26
Networking runtime
- Network API
src/net/api.c - Event loop
src/net/event.c - Socket layer
src/net/sock.c - HTTP
src/net/http.c - WebSocket
src/net/ws.c - MDTP
src/net/mdtp.c - Address helpers
src/net/addr.c
Data and containers
- Dynamic arrays
src/data/array.c - Byte buffers
src/data/buf.c - String utilities
src/data/str.c - JSON processing
src/data/json.c - JWT processing
src/data/jwt.c - Maps and lists
src/data
Cryptography
- Crypto dispatch
src/crypt/crypt.c - AES
src/crypt/aes.c - RSA
src/crypt/rsa.c - Hash and encoding
src/crypt
System utilities
- Filesystem
src/sys/xfs.c - Resource monitoring
src/sys/mon.c - Logging
src/sys/log.c - CLI helpers
src/sys/cli.c - Threading
src/sys/thread.c
Additional protocols
- NTP client
src/net/ntp.c - RTP helpers
src/net/rtp.c - Version helpers
src/xver.c
Other components
- Native application
Connections 16
- Native application → Network API: configures and uses
- Network API → Event loop: multiplexes through
- Network API → Socket layer: uses shared sockets
- Network API → HTTP: serves HTTP
- Network API → WebSocket: serves WebSocket
- Network API → MDTP: serves MDTP
- Network API → Byte buffers: uses session buffers
src/net/api.c - JSON processing → String utilities: uses
src/data/json.c - JSON processing → Maps and lists: uses maps
src/data/json.c - JSON processing → Dynamic arrays: uses arrays
- Crypto dispatch → AES: dispatches to
src/crypt/crypt.c - Crypto dispatch → RSA: dispatches to
src/crypt/crypt.c - Crypto dispatch → Hash and encoding: dispatches to
src/crypt/crypt.c - RSA → Filesystem: uses
src/crypt/rsa.c - Resource monitoring → Filesystem: reads system files
src/sys/mon.c - Threading → Network API: can support workers