Hi

I want to do something like this

http://wiki.qtcentre.org/index.php?title=Simple_chat

but I dont understand how it works.

I dont understand when is readyRead() signal emited and where is data from write() actually written. And why in server receiveMessage() slot is write() called for each socket. Doesnt it call the same write() for one socket many times?

I ll be glad if anybody can explain me this whole system.
Thanks.