[Qt-interest] FTP Server

Steven Doerfler sgd-qt at lugaru.com
Wed Mar 3 02:19:02 CET 2010


On 3/2/2010 4:38 PM, Petric Frank wrote:
> Hello Konstantin,
>
> Am Dienstag 02 März 2010 22:14:24 schrieben Sie:
>   
>>>>> i am looking for a Qt implementation of a minimal ftp server. Files
>>>>> are to be put towards the ftp-server. Is there anyone which already
>>>>> coded such a beast ? I already did some searches around the net
>>>>> (google, mailing lists, qt forums). Haven't found anything so far.
>>>>>           
>>>> Why can't you use existing FTP servers (ProFTPd, wu-ftpd, pure-ftpd)?
>>>>         
>>> I need a special processing of the submitted files. They should not be
>>> placed as files on the disk. I have to process them in memory.
>>> Do the ftp servers you listed above provide this facility ?
>>>       
>> I suppose you coluld use RAM disk or another protocol. AFAIK, FTP is _File_
>>  Transfer Protocol Just my $0.02
>>     
> You're right, FTP is F.T.P. And even ramdisk is storing files.
>
> Ok, another required feature - immediate reaction on arrived files. Otherwise 
> i have to bind for example inotify under Linux. I even don't know what/how to 
> use under other operating systems.
>   

You can set up Pure-FTPd to run a program or script after every
successful upload <http://man-wiki.net/index.php/8:pure-uploadscript>. 
So upload to a ramdisk, then have your script process the file.  (But
this doesn't help if you need to know as soon as a file starts arriving,
and can't wait until it's all uploaded.)

If you use Pure-FTPd, be careful about allowing clients to resume failed
uploads.  Either disable that feature or ensure your script doesn't
interfere with it.

Steven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100302/3cb46613/attachment.html 


More information about the Qt-interest-old mailing list