No, it's not, you just have to change the way you think.
It doesn't mean your program has to "wait" before "returning to the tcpserver class". Especially since you're in a constructor.Because that's a checkpoint I need to check if the info is correct, otherwise I need to stop the server and clean some stuff in other classes.
No, you don't. You only need to execute code B after code A is complete. It doesn't mean you have to wait for anything.So I need the program to stay on http2 until it has an answer and then return it to tcpserver class...
Why not?I can't just throw the rest of the program in a new custom slot and activate it by a signal...
It won't work. You don't have an event loop running, no networking operations can ever complete this way.The solution I made is not working the program is always in the while loop and nothing happens then.
Bookmarks