please help me. I am thinking of getting the messages in the C code itself and passing each message back to the GUI code.
What is the best possible way of doing this? I need to pass each message received in C code to the GUI so that it gets displayed in the GUI. The C code should keep executing and listening to the socket, as soon as it gets a message it should be sent to the GUI code and the C code should continue listening to the socket.