Differences

This shows you the differences between the selected revisions of the page.

2014-03-03 2014-04-24
key size should be 2048 bit at least nowadays (martin) variable names distinct from class names as VB is case-insensitive (martin)
Line 82: Line 82:
        Try         Try
            ' Setup session options             ' Setup session options
-            Dim sessionOptions As New SessionOptions +            Dim mySessionOptions As New SessionOptions 
-            With sessionOptions+            With mySessionOptions
                .Protocol = Protocol.Sftp,                 .Protocol = Protocol.Sftp,
                .HostName = "example.com",                 .HostName = "example.com",
Line 91: Line 91:
            End With             End With
-            Using session As Session = New Session+            Using mySession As Session = New Session
                ' Connect                 ' Connect
-                session.Open(sessionOptions)+                mySession.Open(mySessionOptions)
-                Dim directory As RemoteDirectoryInfo = session.ListDirectory("/home/martin/public_html")+                Dim directory As RemoteDirectoryInfo = mySession.ListDirectory("/home/martin/public_html")
                Dim fileInfo As RemoteFileInfo                 Dim fileInfo As RemoteFileInfo

Last modified: by martin