P2P chat using C sockets and Qt