Re: [twsocket] FTPCli: RequestDone with ftpConnectAsync executed twice
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 :) -- Anton -- 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] FTPCli: RequestDone with ftpConnectAsync executed twice
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]); > > and RequestDone is called 1st time when connection to server is > established, and 2nd time when all requests up to FEAT are sent and > answered. My question: is there a way to distinguish these two cases > from within WMFtpRequestDone? >From memory, if you call HighLevelAsync with a custom set it's likely that you have to handle this in TCustomFtpCli.DoHighLevelAsync as well. -- Arno Garrels -- 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] FTPCli: RequestDone with ftpConnectAsync executed twice
> 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 > USER anonymous < 331 Anonymous access allowed, send identity (e-mail name) as password. > PASS gu...@unknown < 230-Hi! < 230 Anonymous user logged in. > FEAT < 211-FEAT < SIZE < MDTM < 211 END > SYST < 215 Windows_NT FtpClient1RequestDone ConnectAsync ==> 2nd time -- Anton -- 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] FTPCli: RequestDone with ftpConnectAsync executed twice
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 with ftpConnectAsync executed twice 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 time when connection to server is established, and 2nd time when all requests up to FEAT are sent and answered. My question: is there a way to distinguish these two cases from within WMFtpRequestDone? -- Anton -- 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