PDA

View Full Version : How to disconnenct socket in server side?



Ali Reza
6th June 2012, 09:57
Hi guys!
i'm developed a chat program by TCP protocol.
i used one QTcpSocket and one QTcpServer for server section and used one QTcpSocket for client.
now my problem is how to disconnect the connection that established between server and client by server side ??

Regards.

wysota
6th June 2012, 10:26
Just close the socket and call disconnectFromHost().