FileTransferClient.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.FileTransfer.dll (version 7.0.9083)
ConnectAsync(String, FileTransferMode, Object)
Begins asynchronous Connect operation. Connects to the server using chosen protocol.
Declaration
public Task ConnectAsync(string serverName, FileTransferMode transferMode, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
FileTransferMode | transferMode | Which protocol will be used for communication to the server. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
ConnectAsync(String, Int32, FileTransferMode, Object)
Begins asynchronous Connect operation. Connects to the server using chosen protocol.
Declaration
public async Task ConnectAsync(string serverName, int serverPort, FileTransferMode transferMode, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string IP address. |
Int32 | serverPort | The server port (e.g. 21). |
FileTransferMode | transferMode | Which protocol will be used for communication to the server. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |