Hello friends,
Im really knew to this forum,
i have been trying to write a Qt c++ code for transferring files from client to server over a QTcpServer
i have done some long work and different functions for the whole program including the GUI
but now i wanna implement the download button, where the client has a list of the server files , upon double clicking the client will
download the file from server to his PC.
i tried several ways but non is working out for me
i know i should read the file into chunks and feed the socket the chunk while looping till there is no bytes available
can anyone help
give me a sample code of this or another way or any clue
Thanks in advance.