QThread and QTcpSocket problem
Sorry for my bad english!
Assume i have thread A and thread B, thread A interactive with server C through QTcpSocket, thread B interactive with server D through QTcpSocket. thread A and thread B all do work in infinite loop. thread A receive command from server C, then A tell B to suspend loop and do another work(send and receive message from D), when work finished, B resume previous work. How can i achieve this?
Hi. Your question is too general. First of all take a look to examples:
"Threading and Concurrent Programming Examples":https://qt-project.org/doc/qt-5/examples-threadandconcurrent.html
"Inter-Process Communication (IPC) Examples":https://qt-project.org/doc/qt-5/examples-ipc.html
Other examples and tutorials you can find "here":https://qt-project.org/doc/qt-5/qtexamplesandtutorials.html
Also take a look to video tutorials from "voidrealms":http://voidrealms.com/
I hope it helps you to start.