Establishing Connection
Establishing Connection
To establish an iLink 3 connection, use the Connect(String, Int32) method.
To handle network errors during the connection establishment, one needs to catch EngineException exceptions from the Connect(String, Int32) method and try to connect again.
See Also
Session Initialization and Binding. Reconnection.
Closing Connection
To disconnect the session, use the Disconnect(Boolean) method.
Example
session.Connect(counterpartyHost, counterpartyPort);
// ...
session.Disconnect();
Console.WriteLine(session.SessionId.Uuid);