Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-24 Thread Arno Garrels
Anton Sviridov wrote: Hello! I've found that when connecting RequestDone is executed twice with FRequestType = ftpConnectAsync. I use the following command to login: HighLevelAsync(ftpConnectAsync, [ftpFctOpen, ftpFctAuth, ftpFctUser, ftpFctPass, ftpFctAcct, ftpFctSyst, ftpFctFeat]);

Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-24 Thread Anton Sviridov
Very strange! I've traced DoHighLevelAsync step-by-step just now, and RequestDone was called only once, as it supposed to be. Moreover, then I launched my method without tracing and everything remained OK! I hadn't changed anything since I started this topic, so it's likely a piece of magic :)

[twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Anton Sviridov
Hello! I've found that when connecting RequestDone is executed twice with FRequestType = ftpConnectAsync. I use the following command to login: HighLevelAsync(ftpConnectAsync, [ftpFctOpen, ftpFctAuth, ftpFctUser, ftpFctPass, ftpFctAcct, ftpFctSyst, ftpFctFeat]); and RequestDone is called 1st

Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Graham Powell
Don't you just look at the RqType parameter in the event. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Anton Sviridov Sent: 23 December 2009 14:45 To: twsocket@elists.org Subject: [twsocket] FTPCli: RequestDone

Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice

2009-12-23 Thread Anton Sviridov
Don't you just look at the RqType parameter in the event. Yes, I do, and it is ftpConnectAsync in both cases. Here's detailed event log: Login OK! FtpClient1RequestDone ConnectAsync == 1st time 220-Microsoft FTP Service 220 Hello, Welcome to the TrigNet ftp server FtpClient1SessionConnected