HamzaMehboobISYS/Protocol_Host — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a C++ RTU protocol host project for Linux that can produce separate executables for DNP3 serial, DNP3 Ethernet, Modbus serial, Modbus Ethernet, IEC 101, and IEC 104.

I want it organized as separate subprojects, but with shared testing utilities where it makes sense. Each executable should at least build cleanly, load basic configuration, initialize its protocol side enough for a dry run, and have a sensible place for the real protocol logic. Use CMake for builds and make it easy to turn tests on or off.

Please add Google Test based unit tests for the parts that can be tested without real hardware, like config parsing, simple app logic, mocked communication pieces, and shared data structures. Add GitHub Actions so each subproject can build and run its tests independently on Ubuntu. Include simple developer instructions in the README for building, running ctest, and adding new tests.

Look up current docs online if you need to.

Want more depth? Deep Reverse