Connects to the server using chosen protocol.

Namespace:  Rebex.Net
Assembly:  Rebex.FileTransfer (in Rebex.FileTransfer.dll)

Syntax

Visual Basic
Public Sub Connect ( _
	serverName As String, _
	serverPort As Integer, _
	transferMode As FileTransferMode _
)
C#
public void Connect(
	string serverName,
	int serverPort,
	FileTransferMode transferMode
)

Parameters

serverName
Type: System..::..String
The server address - either a hostname or a dotted string IP address.
serverPort
Type: System..::..Int32
The server port (e.g. 21).
transferMode
Type: Rebex.Net..::..FileTransferMode
Which protocol will be used for communication to the server.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also