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]);
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 :)
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
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
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