Multithreaded P2P chat with graphical interface