Re: [twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread François Piette
> I vote for Binary as the default mode. Unfortunately, the standard says text mode has to be the default. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mail

Re: [twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread Arno Garrels
Graham Powell wrote: > Just spotted that with Wireshark. Although Binary mode is set at > design time I remember now that I have to set "TypeBinaryAsync" after > the connection is made. Yep, I and many others had to learn this lesson as well. I vote for Binary as the default mode. -- Arno -

Re: [twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread Graham Powell
no Garrels Sent: 14 November 2012 16:05 To: ICS support mailing Subject: Re: [twsocket] ICS FTP Client Strange Effect Graham Powell wrote: > I have an odd effect that I'm sure one of you clever guys will provide > an answer to. > > I am using the FTP client to put a file

Re: [twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread Arno Garrels
Graham Powell wrote: > I have an odd effect that I'm sure one of you clever guys will > provide an answer to. > > I am using the FTP client to put a file on the a web site. The file > format is of my own making and have no trouble reading and writing to > files to/from the hard drive. > Apart from

[twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread Graham Powell
I have an odd effect that I'm sure one of you clever guys will provide an answer to. I am using the FTP client to put a file on the a web site. The file format is of my own making and have no trouble reading and writing to files to/from the hard drive. Apart from the first 4 bytes in the file, the

Re: [twsocket] ICS FTP Client - Next question

2012-07-18 Thread Graham Powell
17:41 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client - Next question > I have found that if I call TypeBinaryAsync first and then in the > Request event (ftpTypeSetAsync) I now call GetAsync You only need to set type once, and if you are using Async events then OnRequestD

Re: [twsocket] ICS FTP Client - Next question

2012-07-17 Thread Angus Robertson - Magenta Systems Ltd
> I have found that if I call TypeBinaryAsync first > and then in the Request event (ftpTypeSetAsync) I now call GetAsync You only need to set type once, and if you are using Async events then OnRequestDone is where you check your state mechanism for the next command. Personally, I mostly use th

Re: [twsocket] ICS FTP Client - Next question

2012-07-17 Thread Graham Powell
-Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 17 July 2012 15:46 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client - Next question > The problem is that for every carri

Re: [twsocket] ICS FTP Client - Next question

2012-07-17 Thread Angus Robertson - Magenta Systems Ltd
> The problem is that for every carriage return I get an additional > non-Unicode carriage return. > The ICS FTP Client component has the "Binary" property set TRUE. But are you calling the TypeBinary or TypeSet methods that actually send the TYPE command? Angus -- To unsubscribe or change you

[twsocket] ICS FTP Client - Next question

2012-07-17 Thread Graham Powell
So now I have another issue which I'm sure someone will know the answer to. I am copying Unicode files from my FTP server to a local directory. The problem is that for every carriage return I get an additional non-Unicode carriage return. So for a CR LF where I should receive 0D 00 0A 00, I get 0D

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
Thank you. You have been very helpful. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 16 July 2012 17:38 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client > I had

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> I had not cleared the "HostFilename" parameter. So the DirAsync still > had this as a parameter. This is deliberate, the FTP command 'LIST directory' is valid, but not totally reliable with all FTP servers, it can save a lot of path commands. 'LIST filename' is also how to check if a specific f

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
still had this as a parameter. Thanks for all your input. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 16 July 2012 15:46 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP C

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Marc Charbonneau
>> I know there are files in the sub folder as I can see them >> with Windows Explorer. > > Which does not have any FTP functionality, so is this a local FTP server? You can browse FTP servers with Windows Explorer, you just need to type the address in the address bar. Ex.: ftp://usern...@ftpserver

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> I may well end up using your components, but in the meantime I need > to determine what my problem is here. The component includes an EXE demo, use that against the FTP server and the same root directory specifying get subdirs, and watch the FTP commands and responses the component uses to pars

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
double dot folders. Any more clues? Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 16 July 2012 14:26 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client > Now I change

Re: [twsocket] ICS FTP Client

2012-07-16 Thread Angus Robertson - Magenta Systems Ltd
> Now I change the working directory to Test1/abc. I check with > Now I change the working directory to Test1/abc. PwdAsync that > it is correct and it responds with what I could expect. > Next I try and do a directory listing on this folder. The response > indicates no error, but the stream is o

[twsocket] ICS FTP Client

2012-07-16 Thread Graham Powell
I'm sure this problem is simple to solve but I am tearing my hair out trying to solve it. Imagine I have an FTP site that contains a folder called "Test1". In this folder I have a file called "abc.dat" and another folder just called "abc". So I log on to the FTP site and change the directory (Cwd

Re: [twsocket] ICS FTP Client

2010-10-22 Thread Graham Powell
ngus Robertson - Magenta Systems Ltd Sent: 22 October 2010 16:47 To: twsocket@elists.org Subject: Re: [twsocket] ICS FTP Client > Apart from the first command, under normal circumstances all commands > loaded to the FTP client are as a result of a previous FTP client > event being generated. Occa

Re: [twsocket] ICS FTP Client

2010-10-22 Thread Angus Robertson - Magenta Systems Ltd
> Apart from the first command, under normal circumstances all > commands loaded to the FTP client are as a result of a previous FTP > client event being generated. Occasionally I am detecting a "FTP > Component Not Ready" error. > > So the question is: Is there an FTP or some sort of network >

Re: [twsocket] ICS FTP Client

2010-10-22 Thread Francois PIETTE
Apart from the first command, under normal circumstances all commands loaded to the FTP client are as a result of a previous FTP client event being generated. Occasionally I am detecting a "FTP Component Not Ready" error. So the question is: Is there an FTP or some sort of network condition that

[twsocket] ICS FTP Client

2010-10-22 Thread Graham Powell
Apart from the first command, under normal circumstances all commands loaded to the FTP client are as a result of a previous FTP client event being generated. Occasionally I am detecting a "FTP Component Not Ready" error. So the question is: Is there an FTP or some sort of network condition that c

Re: [twsocket] ICS FTP client - more questions

2009-10-17 Thread Francois PIETTE
problem I have is that while this file download is active I am also trying to write data to a USB device. There is a certain amout of buffering available but large amounts of network activity prevent the application from servicing the USB port. Is there any way to reduce the overall priority of

[twsocket] ICS FTP client - more questions

2009-10-16 Thread Graham (Deephaven)
This is the issue I now have: The FTP client is connected to a server and is downloading files as fast as it can. As discussed in previous e-mails there is an approx 200mS network delay between file downloads, probably due to the opening and closing of the data socket and I don't really want t

Re: [twsocket] ICS FTP Client list command result

2007-10-15 Thread Arno Garrels
Ian Thompson wrote: > Hi. > > Just started using the ICS stuff and I can’t figure out where the > returned file list is put or access when I issue a LIST of LS > command. Checked the source header and FAQ first, but (unless I > missed it) I can't see anything on the subject other than "the list >

[twsocket] ICS FTP Client list command result

2007-10-15 Thread Ian Thompson
Hi. Just started using the ICS stuff and I can’t figure out where the returned file list is put or access when I issue a LIST of LS command. Checked the source header and FAQ first, but (unless I missed it) I can't see anything on the subject other than "the list is placed in a local file". Where