Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
Connect method
Connects to remote server.
Type
VoidSyntax
- C#
- VB.NET
public Void Connect();
public Void Connect(String Hostname, String Login, String Password);
The Connect(Hostname,Login,Password) syntax has these parts:
public Void Connect(String Hostname, String Login, String Password);
The Connect(Hostname,Login,Password) syntax has these parts:
Hostname | Holds name of remote server, or his IP address. |
Login | Holds login/username for authentication with the server. |
Password | Holds password for authentication with the server. |
public Sub Connect()
public Sub Connect(ByVal Hostname As String, ByVal Login As String, ByVal Password As String)
The Connect(Hostname,Login,Password) syntax has these parts:
public Sub Connect(ByVal Hostname As String, ByVal Login As String, ByVal Password As String)
The Connect(Hostname,Login,Password) syntax has these parts:
Hostname | Holds name of remote server, or his IP address. |
Login | Holds login/username for authentication with the server. |
Password | Holds password for authentication with the server. |
Remarks
Connect method will initiate connection between wodFtpDLX.NET and the remote server. It can be used only if wodFtpDLX.NET is not connected with server at the same moment (in other words, if State is set to Disconnected.If an error occurs during connection, Connected event will be fired with Args.Error argument containing the error. If Args.Error is set to null (Nothing in VB), wodFtpDLX.NET successfully connected with remote server.
Upon connection, wodFtpDLX.NET may perform initial 'handshake' with remote server, depending on protocol selected. For example, SFTP and FTPS protocols will negotiate encryption algorithms and other properties related to secured connection. After handshake is completed, wodFtpDLX.NET will perform automatic authentication with server.
If authentication is successful, wodFtpDLX.NET will try to retrieve home path of the user, and store it initially to RemotePath property.