Connect method

Connects to an Iguana From-Plugin channel component as a source plugin.

Applies to

TIGCsource

Declaration

procedure Connect(HostName : String; PortNumber : Integer; ChannelName : String);

Description

Should be called only while the plugin is disconnected (for example, after a return from WaitForDisconnect).

May not be called from within an event handler (for example, may not be called from within the OnDisconnected handler).

If a connection is not established within the timeout period specified by ConnectTimeout, an exception will be thrown. The default timeout period of 5000 milliseconds should suffice for most plugins, and should only be adjusted if connection timeouts are observed.

Throws: Function throws an exception upon connection failure or timeout, or if called from within an event handler.

Parameters
HostName Iguana machine hostname or IP address (typically 'localhost' if the plugin and Iguana are running on the same machine).
PortNumber Iguana Plugin Communication Server port number (typically 6123).
ChannelName Iguana channel name.


Chameleon Delphi Documentation