Re: [twsocket] How can we automatically set timeout in FTP

2006-07-06 Thread Arnold FLUTEAUX
Hello Wilfried, It’s true that it’s OK in sync mode with increasing or decreasing the timeout but I want to try the async mode. So, I put my code in RequestDone event and I launch async method step by step in testing the errcode (parameter of RequestDone). Are you sure that all errors will pass

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-06 Thread Wilfried Mestdagh
Hello Arnold, Correct, if I'm not mistaken you in fact only need OnRequestDone to check the flow / errors / do next action. There you check ErrCode, if 0 there is server or winsock error. winsock error = 1. Also check RequestType to check the state of the component. You probably want

[twsocket] FTP missing bytes

2006-07-06 Thread Gies,Brad
I have an automated process that has been sending FTP files to a customer for over two years with no problem. Suddenly, they seem to be missing two bytes from a file after I transfer it, which is causing problems. I did recently upgrade my ICS to the latest version. Has anything changed that

Re: [twsocket] FTP missing bytes

2006-07-06 Thread Arno Garrels
Gies,Brad wrote: The problem is the same whether I transfer in binary mode or ASCII mode. I have noticed that I do get the 150 Opening ASCII mode data connection for 501330.zip. even when I have the binary mode check box checked in the FTPTest form. Am I always sending in ASCII mode now?

Re: [twsocket] FTP missing bytes

2006-07-06 Thread Arno Garrels
Gies,Brad wrote: It seems the answer is that I now have to send the Type command before I do the PUT. Correct, except that it must be called in previous versions too, changing property BinaryMode alone does nothing. Did it used to default to binary before, and now it defaults to ASCII? The

Re: [twsocket] FTP missing bytes

2006-07-06 Thread Woody
From: Gies,Brad [EMAIL PROTECTED] It seems the answer is that I now have to send the Type command before I do the PUT. Did it used to default to binary before, and now it defaults to ASCII? When I originally built my little web site program for editing pages and uploading them, I was under

Re: [twsocket] FTP missing bytes

2006-07-06 Thread
- Original Message - From: Gies,Brad Sent: 7/6/2006 11:35:48 AM To: twsocket@elists.org Subject: Re: [twsocket] FTP missing bytes It seems the answer is that I now have to send the Type command before I do the PUT. Did it used to default to binary before, and now it defaults to

Re: [twsocket] FTP missing bytes

2006-07-06 Thread Gies,Brad
Thanks for the explanations. I had no idea it was a server setting, and always assumed it would be up to the client. I guess I have just been lucky getting away with it for so long. Much Appreciated. Sincerely, Brad Gies - NLM Software Southfield, MI, USA

Re: [twsocket] FTP missing bytes

2006-07-06 Thread
- Original Message - From: Gies,Brad Sent: 7/6/2006 1:41:41 PM To: twsocket@elists.org Subject: Re: [twsocket] FTP missing bytes Thanks for the explanations. I had no idea it was a server setting, and always assumed it would be up to the client. I guess I have just been lucky