Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in .NET FTP by
Any chance anyone is working on some asynchronous code that uses BeginResolve, EndResolve, BeginConnect, and EndConnect? I'm headed down that route, but if someone has already finished it, makes my life easier.

2 Answers

0 votes
by
Here are the code.
-----------------------------------------------------------

private delegate void LoginCallback(string sUser, string sPassword);
public System.IAsyncResult BeginLogin(string sUser, string sPassword, System.AsyncCallback callback)
{
LoginCallback ftpCallback = new LoginCallback(this.Login);
return ftpCallback.BeginInvoke(sUser, sPassword,callback, null);
}
private delegate void CloseCallback();
public System.IAsyncResult BeginClose(System.AsyncCallback callback )
{
CloseCallback ftpCallback = new CloseCallback( this.Quit);
return ftpCallback.BeginInvoke(callback, null);
}
0 votes
by (162k points)
Thanks. We will be looking at introducing some asynchronous methods soon.

Here are the code.

Categories

...