aboutsummaryrefslogtreecommitdiffstats
path: root/mock-server/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename demo/ → jetting-interface/, mock-server/ → mock-jetting-controller/Thomas Vanbesien2026-03-231-30/+0
| | | | | Executables: QtXpl2Demo → JettingInterfaceDemo, Xpl2MockServer → MockJettingController. Dev log prefixes: "Demo" → "JI", "MockServer" → "MockJC". Window title → "Jetting Interface".
* Invert TCP connection model: client listens, server connectsThomas Vanbesien2026-03-231-1/+3
| | | | | | | | | | The XPL2 protocol specifies that the JI2 controller initiates connections to the client, not the other way around. Xpl2Client now listens on 3 ports via QTcpServer and accepts inbound connections; MockServer connects out with auto-retry on the 1s KA_PING tick. QML API: startListening/stopListening, listening+connected properties, host property removed. Mock server gains --host CLI arg.
* Unified socket slots, --wire-debug CLI flag, fix mock TX and disconnect loggingThomas Vanbesien2026-03-131-0/+11
| | | | | | | | Collapse 12 per-socket slots into 4 sender()-based slots. Replace runtime wireDebug QML property with static --wire-debug CLI flag on both demo and mock server. Route MockServer::sendKaPing through sendReply so KA_PING TX shows wire bytes. Simplify sendReply to deduce command token from wire data. Fix Xpl2Client disconnect logging (logTag takes pointer, null-sender fallback).
* Coalesce mock server into single MockServer classThomas Vanbesien2026-03-131-5/+3
| | | | | | Replace three independent EchoServer instances with one MockServer that owns three QTcpServers, shares a single KA_PING timer, and uses a flat client list with localPort() for port resolution.
* Refactor: three XPL2 ports, EchoServer class, dark debug console, qmllint cleanThomas Vanbesien2026-03-111-50/+5
| | | | | | | | - Xpl2Client: replace single port with commandPort/imagingPort/statusPort (9110/9111/9112) - Mock server: extract EchoServer class from lambda-based listenOn() - Demo: dark debug console matching BobinkQtOpcUa style, 2-column connection layout - Fix qmlls module resolution via IMPORT_PATH in qt_add_qml_module() - Add pragma ComponentBehavior: Bound, fix all qmllint warnings
* Add mock XPL2 server with echo on Command (9110), Imaging (9111), Status ↵Thomas Vanbesien2026-03-111-0/+64
(9112) ports