Click or drag to resize

ProxySocketBeginConnect(EndPoint, AsyncCallback, Object) Method

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

Namespace: mtapi.mt5
Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax
public IAsyncResult BeginConnect(
	EndPoint remoteEP,
	AsyncCallback callback,
	Object state
)

Parameters

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

Return Value

IAsyncResult
An IAsyncResult that references the asynchronous connection.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe remoteEP parameter is a null reference (Nothing in Visual Basic).
SocketExceptionAn operating system error occurs while creating the Socket.
ObjectDisposedExceptionThe Socket has been closed.
See Also