Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-06 Thread Angus Robertson - Magenta Systems Ltd
 How to identify moment of uploaded file ?
 I'd like to do some operations on file, which come from client

OnStorSessionClosed triggers when PUT finishes, you need to check AError
to see if it worked, then the Client parameter gives you access to the
file details, ie Client.FilePath, Client.DataStream, etc.  

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-06 Thread Tomasz Maciejewski
Many thanks ! It's working.
I have one more question: Is possible to send file from server to
client without request from client ?


2011/5/6 Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk:
 How to identify moment of uploaded file ?
 I'd like to do some operations on file, which come from client

 OnStorSessionClosed triggers when PUT finishes, you need to check AError
 to see if it worked, then the Client parameter gives you access to the
 file details, ie Client.FilePath, Client.DataStream, etc.

 Angus

 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-06 Thread Angus Robertson - Magenta Systems Ltd
 *Subject:* Re: [twsocket] FTP Server - Identify moment of Put file
 *From:* Tomasz Maciejewski macie...@gmail.com
 *To:* ICS support mailing twsocket@elists.org
 *Date:* Fri, 6 May 2011 12:46:06 +0200
 Is possible to send file from server to
 client without request from client ?

Not really, the FTP server only ever responds to commands from clients,
it has no concept of running commands on it's own.  

In theory, if the client keeps a control connection open and sends a
'please wait' command, the server could pause for an event and send a
custom response to the client to allow the client to start a download.
But this would need custom commands in client and server. 

Assuming this is some private application, the easier solution is for the
client PC to have a small custom server running, even UDP which is very
easy, and for the main server to use a simple protocol to sends commands
to the client, which then triggers the FTP download. 
I did this a few years ago to get 500 remote PCs to download new files on
demand. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be