[Quickfix-developers] How to capture Connection Dropped or Connection Failed Event
Brought to you by:
orenmnero
|
From: Ananth <ans...@sp...> - 2005-10-03 14:43:53
|
<html>=0D <BR> =0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Hi,</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>My client is a COM client using QuickFIX4.2. But while logg= ing to server sometimes <B style=3D"mso-bidi-font-weight: normal">Connectio= n drops </B>because of invalid seq no. or invalid Msg.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>OR <B style=3D"mso-bidi-font-weight: normal">Connection fai= ls</B> if server is not up.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>For e.g.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050922-09:45:25 : Connecting to 192.168.0.54 on port 1224= 1</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050922-09:45:25 : Connection succeeded</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050922-09:45:25 : Initiated logon request</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050922-09:45:25 : Dropped Connection</FONT></P>=0D <DIV style=3D"; PADDING-RIGHT: 0in; ; PADDING-LEFT: 0in; PADDING-BOTTOM: 1p= t; ; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-bott= om-alt: solid windowtext .75pt">=0D <P class=3DMsoNormal style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in= ; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: = 0in 0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; mso-border-bottom-= alt: solid windowtext .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT= face=3D"Times New Roman" size=3D3> </FONT></o:p></P></DIV>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050923-15:<st1:time Hour=3D"17" Minute=3D"43">05:43</st1:= time> : Connecting to 10.1.56.71 on port 9560</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>20050923-15:<st1:time Hour=3D"18" Minute=3D"6">06:06</st1:t= ime> : Connection failed</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>But how can my client application can detect these events.<= /FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Is there any CallBack functions provided for it such as</FO= NT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon= t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">CMEInitiato= rApp::onLogon<o:p></o:p></FONT></FONT></B></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>So that I can get control of such events and inform the use= r.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Thanks in Advance,</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Ananth</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D </html><BR>= |