All wodCrypt (12) wodSSH (10) wodSFTP (23) wodSSHServer (1) wodSSHTunnel (11) wodSSHpackage wodSFTPdll wodSSH.NET (10) wodSFTP.NET (24) wodFtpDLX.NET (22) wodWebServer.NET (10) wodAppUpdate (13) wodHttpDLX (8) wodFtpDLX (22) wodTelnetDLX wodFTPServer (3) wodWebServer (10) wodVPN wodXMPP (13) | All ** [Visual Basic] ** [C#] ** [VB.NET] ** Aborting file transfer using SFTP protocol
VB code
Dim WithEvents wodSFTP1 As wodSFTPCom Private Sub Form_Load() Set wodSFTP1 = New wodSFTPCom 'Authenticate with server using hostname, login, password. wodSFTP1.HostName = "your_hostname" wodSFTP1.Login = "your_login" wodSFTP1.Password = "your_password" wodSFTP1.Connect End Sub 'Connected Event is triggered after connection with server is established. Private Sub wodSFTP1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String) If ErrorCode = 0 Then 'In this example we will upload some file to server. Same procedure is for downloading file. VB.NET code
Dim WithEvents wodSFTP1 As WeOnlyDo.Client.SFTP Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load wodSFTP1 = New WeOnlyDo.Client.SFTP 'Authenticate with server using hostname, login, password. wodSFTP1.Hostname = "your_hostname" wodSFTP1.Login = "your_login" wodSFTP1.Password = "your_password" wodSFTP1.Connect() End Sub 'Connected Event is triggered after connection with server is established. Private Sub wodSFTP1_ConnectedEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.ConnectedArgs) Handles wodSFTP1.ConnectedEvent If (Args.Error Is Nothing) Then 'In this example we will upload some file to server. Same procedure is for downloading file. C# code
WeOnlyDo.Client.SFTP wodSFTP1; private void Form1_Load(object sender, EventArgs e) { wodSFTP1 = new WeOnlyDo.Client.SFTP(); wodSFTP1.ConnectedEvent += new WeOnlyDo.Client.SFTP.ConnectedDelegate(wodSFTP1_ConnectedEvent); wodSFTP1.DoneEvent += new WeOnlyDo.Client.SFTP.DoneDelegate(wodSFTP1_DoneEvent); //Authenticate with server using hostname, login, password. wodSFTP1.Hostname = "your_hostname"; wodSFTP1.Login = "your_login"; wodSFTP1.Password = "your_password"; wodSFTP1.Connect(); } //Connected Event is triggered after connection with server is established. void wodSFTP1_ConnectedEvent(object Sender, WeOnlyDo.Client.SFTP.ConnectedArgs Args) { if (Args.Error == null) { //In this example we will upload some file to server. Same procedure is for downloading file. |