can anybody tell how to send list of files in directory to Qudpsocket.And some example.
For how to use QudpSocket
(answer by @the_ )
There is no concept of files, so you need somehow tell the receiver under what file name to store the data.
Also, you should be aware that QUdpSocket is not optimal for files.
Proposing to use UDP sockets for what you say would be "unusual". Do you want to explain what you are actually trying to achieve?