The Scenario:
I have written a CLI Backdoor and a CLI Controller in C for Linux. I am using Glade along with GTK+3 to create a GUI interface for the Controller. I want the Controller (basically a server with reversed functionality) to accept connections all the time from the backdoor (a client with reversed functionality). Meanwhile, I want that the commands written on a TextBuffer widget in the Controller be sent to the Backdoor and the received output be written back onto it.
Question 1: Should I use threads for the purpose? Question 2: If not, then what would be the best solution to this problem? Question 3: Should I be using GDK Threads? Any tutorials that you may recommend?
Thanks a-million!