PDA

View Full Version : How to get a file from TFTP server?



zgulser
18th January 2013, 12:59
Hi,

I can connect to TFTP server in the socket level (using QUDPSocket). But I couldn't figure out how to retreive a file from this TFTP server(like QFtp::get()).

Any ideas?

Santosh Reddy
18th January 2013, 13:34
If you are looking for somthing like QTftp::get(), you won't have it.

When using socket level implementaion with QUdpSocket, you need to implement the file receive protocol by your self.

zgulser
18th January 2013, 13:39
I see.

I suppose this thread;

http://www.qtcentre.org/threads/36457-tftp-with-QUdpSocket-cannot-do-have-to-use-Q3SocketDevice

does the trick.

Thanks.