PDA

View Full Version : qt4 network programming



linuxqt
12th March 2009, 07:41
How to program in qt4 with TcpSocket and TcpServer for impliementing a Ftp Server?

BastiBense
12th March 2009, 08:00
Easy, there is a lot of documentation that comes with Qt that covers basic QTcpSocket and QTcpServer usage:

http://doc.trolltech.com/4.5/qtnetwork.html

Plus there is documentation about the FTP protocol all over the web.

What do you want to do, anyway? It might be a better idea to use an existing, proven FTP server and hook it to your application in most cases.

Basti

spirit
12th March 2009, 08:02
you also may take a look at this example QTDIR/examples/network/ftp. :)

BastiBense
12th March 2009, 15:41
you also may take a look at this example QTDIR/examples/network/ftp. :)

I guess that won't be of much help since it uses QFtp to act as a FTP client. If he wants to provide a FTP server, he'll have to write his own one or better use an existing library or daemon.