Connect method
Connect to the given host and port number.
Applies to
Declaration
procedure Connect(Host : String; Port : Integer);
Description
Function requires a running message loop (see RunMessageLoop).
Blocking: Function does not block.
Events: If the connection succeeds, a OnConnected event results. If the connection fails, an OnErrorReceived event results, containing the error message indicating why the connect attempt has failed.
Parameters |
Host | Host to connect to. |
Port | Port to connect to. |