Chameleon and Iguana Plugin C# Class Libraries

Source.Connect Method 

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

[Visual Basic]
Public Sub Connect( _
   ByVal HostName As String, _
   ByVal PortNumber As Integer, _
   ByVal ChannelName As String _
)
[C#]
public void Connect(
   string HostName,
   int PortNumber,
   string ChannelName
);

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.

Remarks

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 Disconnected 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.

See Also

Source Class | iNTERFACEWARE.Iguana.Plugin Namespace