Re: Getting a strange error - WeOnlyDo Discussion board

Re: Getting a strange error (General questions)

by JasonH, Friday, March 24, 2006, 20:07 (6822 days ago) @ wodDrazen

Connecting to ftp.expressbil.com using implicit SSL, port 990.
I have successfully connected through FileZilla FTP client.

Written in C++. m_Ftp is a smart pointer. m_FtpEvent is a smart pointer to an event handler.

[code]
m_Ftp->put_Hostname( my.server );
m_Ftp->put_Login( login );
m_Ftp->put_Password( password );
m_Ftp->put_Port(990);

m_Ftp->Connect();

// setup manual timeout
dtStart = COleDateTime::GetCurrentTime();
while (m_FtpEvent.DidConnectedEventFire() == FALSE)
{
dtsSpan = COleDateTime::GetCurrentTime() - dtStart;
long lSecs = (long) dtsSpan.GetTotalSeconds();
if (lSecs >= 120 || m_FtpEvent.DidDisconnectedEventFire())
break;
}

if (m_Ftp->State == Connected)
.. do stuff ...
[/code]


Complete thread: