this is a general question about GUIs. I never wrote a program with GUI, and now I have to do it for the University. I found that the best solution programming in C is GTK+.
I see many examples, but I still can't understand one thing. My program is a server/client app, so it has to run in background also if there's a small GUI. How could it be realised? I see that to "start" the guy I have to use gtk_main() loop, and the application blocks inside this loop for all the time. Should I use fork() to do other tasks at the same time?
Thanks, sorry if it's a trivial question.
It's difficult to explain it in italian, in english is even worst :)
The program has to listen continously the network (LAN), to see if other users arrives and catch their UDP messages, and at the same time it has to communicate to a specific user if some conditions are verified (for example, if a file in a local folder changes, it has to send this file to the designated user. This could happen with multiple users at the same time). I have only one application that has to be server (sending files) and client (listening to the network) at the same time.
The idea of having a separate "client" which implements the GUI could be interesting.
I never developed a GUI, so I thought to write all my program, and then add the GUI at the end. It's possible?