Record the sending process of the host computer for the communication data! ! ! ! ! !

       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! ! ! ! ! !

Guess you like

Origin blog.csdn.net/qq_43499961/article/details/107964292