It is going to be a mixed chat where people can chat in rooms but they can also chat individual.
I understand the stuff about sockets, so that's not the problem. My problem is that I dont know what the best way is to send messages from thread 1 to thread 2.
Is it a good idea to do this with pipes? Because a pipe is a file descriptor i can used it together with select(); so that the thread can wait for data from the client, or data from the pipe.