Begins an asynchronous request for a connection to a network device.

Namespace: Jscape.Util.Proxy
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public IAsyncResult BeginConnect(
	EndPoint remoteEP,
	AsyncCallback callback,
	Object state
)
Visual Basic
Public Function BeginConnect ( _
	remoteEP As EndPoint, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
Visual C++
public:
IAsyncResult^ BeginConnect(
	EndPoint^ remoteEP, 
	AsyncCallback^ callback, 
	Object^ state
)

Parameters

remoteEP
Type: System.Net..::..EndPoint
An EndPoint that represents the remote device.
callback
Type: System..::..AsyncCallback
The AsyncCallback delegate.
state
Type: System..::..Object
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous connection.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
System.Net.Sockets..::..SocketExceptionAn operating system error occurs while creating the Socket.
System..::..ObjectDisposedExceptionThe Socket has been closed.

See Also