Click or drag to resize

ProxySocketBeginConnect(String, Int32, 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(
	string host,
	int port,
	AsyncCallback callback,
	Object state
)

Parameters

host  String
The host to connect to.
port  Int32
The port on the remote host to connect to.
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 host parameter is a null reference (Nothing in Visual Basic).
ArgumentExceptionThe port parameter is invalid.
SocketExceptionAn operating system error occurs while creating the Socket.
ObjectDisposedExceptionThe Socket has been closed.
See Also