|Logging||Table of Content||Connecting to Multiple Segments|
|Connecting to Backup Sessions|
If connection to primary host has been dropped, CME allows to connect to backup host:
Handler supports connection to backup host via providing new host ip address.
Following example demonstrates how to switch to backup host:
Handler handler = new Handler("SenderCompId", "SenderSubId", "Segment"); handler.ExecutionReportReceived += new EventHandler<MessageEventArgs>(handler_ExecutionReportReceived); handler.MassOrderCancelReportReceived += new EventHandler<MessageEventArgs>(handler_MassOrderCancelReportReceived); handler.Logon(primary_host, port, "password"); // Some network or gateway failure occurs so there is need to switch to backup host handler.Logon(backup_host, port, "password");