How fohhn/fohhn-net-udp-to-serial works
This utility is a Linux UDP server that forwards Fohhn-Net messages between a network client and a serial device. Its principal workflow starts with command-line configuration, initializes the serial port and UDP listener, then selects between incoming UDP requests and serial replies. FDCP buffer logic filters requests and collects replies. The graph reflects calls visible in the sampled source and capabilities documented in the README; no unsampled runtime subsystem is assumed.
Main entry points: main.c CLI and event loop · serial.c Serial port · udp.c UDP listener · fdcp_forward.c FDCP buffers
Components 7
Forwarding runtime
- CLI and event loop
main.c
Transport adapters
- UDP listener
udp.c - Serial port
serial.c
FDCP framing
- FDCP buffers
fdcp_forward.c
Other components
- Operator
- UDP client
- Serial device
Connections 14
- Operator → CLI and event loop: configures
main.c - CLI and event loop → FDCP buffers: clears buffers
main.c - CLI and event loop → Serial port: initializes port
main.c - CLI and event loop → UDP listener: starts listener
main.c - CLI and event loop → UDP listener: polls socket
main.c - CLI and event loop → Serial port: polls port
main.c - UDP listener → UDP client: receives datagrams
udp.c - Serial port → Serial device: reads and writes
serial.c - CLI and event loop → UDP listener: receives request
main.c - CLI and event loop → FDCP buffers: filters request
main.c - CLI and event loop → Serial port: writes request
main.c - CLI and event loop → Serial port: reads reply
main.c - CLI and event loop → FDCP buffers: frames reply
main.c - CLI and event loop → UDP client: sends reply
main.c