Quote Originally Posted by Vagesh View Post
But sender always sends a complete XML message at one time.
The application is sending an XML message at one time, the TCP/IP stack is not. That's the whole point of our conversation -- one "send" does not equal to one "receive".
Do you see any issue in my code.
Yes, you ignore the fact that TCP is a stream protocol and not a datagram protocol. If you want to handle XML messages then you have to detect the start and end of a message by yourself. QXmlStreamReader can help you with that a bit.