Contrary to the previous process, the last process was: Network ——>tcpWork——>tcpmanager—>interface; this time the process is interface—>tcpmanager—>tcpWork——>network.
One: First create an interface slot function
(1) Declare in traileralarmsimalation.h
(2) Implement function implementation and slot connection in traileralarmsimalation.cpp
Two: tcpmanager
(1) Define the signal in monitorcpclientthreadmanager.h
(2) Connect the manager with the work in monitortcpclientthreadmanager.cpp
Three: tcpWork
(1) Define the slot function in monitorcpclientworker.h
(2) Add implementation function in monitortcpclientworker.cpp
If you have any questions, you can discuss them together! ! ! ! ! !