Click or drag to resize

ProxySocketConnect(String, Int32) Method

Establishes a connection to a remote device.

Namespace: mtapi.mt5
Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax
public void Connect(
	string host,
	int port
)

Parameters

host  String
The remote host to connect to.
port  Int32
The remote port to connect to.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe host parameter is a null reference (Nothing in Visual Basic).
ArgumentExceptionThe port parameter is invalid.
SocketExceptionAn operating system error occurs while accessing the Socket.
ObjectDisposedExceptionThe Socket has been closed.
ProxyExceptionAn error occurred while talking to the proxy server.
Remarks
If you use this method with a SOCKS4 server, it will let the server resolve the hostname. Not all SOCKS4 servers support this 'remote DNS' though.
See Also