<font size=2 face="sans-serif">Classification: For internal use only<br>
<br>
</font>
<br><font size=2 face="sans-serif">I'm trying to log on and send
the order to a server, probably it has some security policies, but I don't
really know if SSL is required.</font>
<br>
<br><font size=2 face="sans-serif">Is this a limitation to use qf/n or
can I configure it to use SSL? </font>
<br>
<br><font size=2 face="sans-serif">I think the problem is more related
to the sequence number expected as occurs on Verifix.</font>
<br>
<br><font size=2 face="sans-serif">Thanks & regards.</font>
<br>
<br><font size=2 face="sans-serif"><br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">James Riehl <pete.riehl@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com>,
</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">11/25/2013 11:23 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: {{Quickfixn}} Log In troubles [I]</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Maybe applicable, does you counterparty require ssl? I
always get the forcibly closed error when stunnel (an ssl tunneling application)
is not configured correctly. Perhaps the fix app you're testing connectivity
with uses ssl, where as qf/n doesn't... Yet (really psyched about this
grant). Just a thought.<br>
<br>
Sent from my iPhone</font>
<br><font size=3><br>
On Nov 25, 2013, at 17:40, Erika Hernandez <</font><a href=mailto:erika.hernandez@db.com><font size=3 color=blue><u>erika.hernandez@db.com</u></font></a><font size=3>>
wrote:<br>
</font>
<br><font size=2 face="sans-serif">Classification: For internal use only<br>
<br>
Hi , </font><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
1) I debugged the code, when I try to send the order , I see that
the <b><i>Send methods</i></b> are executed twice. Why? </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
When this line is executed for second time :</font><font size=3> <br>
<br>
</font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">int</font><font size=1 face="}">
bytesSent = socket_.Send(rawData);</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
I get the last event on the log:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
20131125-22:29:40.220 : Created session</font><font size=3> </font><font size=2 face="sans-serif"><br>
20131125-22:29:40.274 : Connecting to 172.17.111.23 on port 9002</font><font size=3>
</font><font size=2 face="sans-serif"><br>
20131125-22:29:40.286 : Connection succeeded</font><font size=3> </font><font size=2 face="sans-serif"><b><br>
20131125-22:30:14.975 : Connection failed: An existing connection was forcibly
closed by the remote host</b></font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
And the order is not sent. </font><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
2 , 3 ) Yes , I already tried : </font><font size=3> <br>
</font><font size=1 face="}"><br>
ResetOnLogon=Y</font><font size=3> </font><font size=1 face="}"><br>
MsgSeqNum=1</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
But it did't work , and , that's right, I cannot restart the sequence
number from the other side every time i need to run my code since there
will be used on automated test cases , I think I need to know the
next sequence number before sending the message. </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
So I think the right settings will be: </font><font size=3><br>
</font><font size=1 face="}"><br>
ResetOnLogon=N</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
How can I get the last seq number used? </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Where the sequence number is being set ? </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Why a zero is sent here? : </font><font size=3><br>
</font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">public</font><font size=1 face="}">
</font><font size=1 color=blue face="}">virtual</font><font size=1 face="}">
</font><font size=1 color=blue face="}">bool</font><font size=1 face="}">
Send(</font><font size=1 color=#4181c0 face="}">Message</font><font size=1 face="}">
message)</font><font size=3> </font><font size=1 face="}"><br>
{</font><font size=3> </font><font size=1 face="}"><br>
message.Header.RemoveField(Fields.</font><font size=1 color=#4181c0 face="}">Tags</font><font size=1 face="}">.PossDupFlag);</font><font size=3>
</font><font size=1 face="}"><br>
message.Header.RemoveField(Fields.</font><font size=1 color=#4181c0 face="}">Tags</font><font size=1 face="}">.OrigSendingTime);</font><font size=3>
</font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">return</font><font size=1 face="}">
SendRaw(message, 0); </font><font size=3> </font><font size=1 face="}"><br>
}</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I guess the sequence number is taken from here, so should I add that to
the message's header? </font><font size=3><br>
</font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">protected</font><font size=1 face="}">
</font><font size=1 color=blue face="}">void</font><font size=1 face="}">
Persist(</font><font size=1 color=#4181c0 face="}">Message</font><font size=1 face="}">
message, </font><font size=1 color=blue face="}">string</font><font size=1 face="}">
messageString)</font><font size=3> </font><font size=1 face="}"><br>
{</font><font size=3> </font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">if</font><font size=1 face="}">
(</font><font size=1 color=blue face="}">this</font><font size=1 face="}">.PersistMessages)</font><font size=3>
</font><font size=1 face="}"><br>
{</font><font size=3> </font><font size=1 face="}"><br>
</font><font size=1 color=blue face="}">int</font><font size=1 face="}">
msgSeqNum = message.Header.GetInt(Fields.</font><font size=1 color=#4181c0 face="}">Tags</font><font size=1 face="}">.MsgSeqNum);</font><font size=3>
</font><font size=1 face="}"><br>
state_.Set(msgSeqNum,
messageString);</font><font size=3> </font><font size=1 face="}"><br>
}</font><font size=3> </font><font size=1 face="}"><br>
state_.IncrNextSenderMsgSeqNum();</font><font size=3>
</font><font size=1 face="}"><br>
}</font><font size=3> <br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
Thanks & regards! </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font><font size=3><br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=13%><font size=1 color=#5f5f5f face="sans-serif">From:</font><font size=3>
</font>
<td width=86%><font size=1 face="sans-serif">Grant Birchmeier <</font><a href=mailto:gbirchmeier@connamara.com><font size=1 color=blue face="sans-serif"><u>gbirchmeier@connamara.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">"Mailing list for QuickFIX/n"
<</font><a href=mailto:quickfixn@lists.quickfixn.com><font size=1 color=blue face="sans-serif"><u>quickfixn@lists.quickfixn.com</u></font></a><font size=1 face="sans-serif">>,
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">11/25/2013 05:13 PM</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">Re: {{Quickfixn}} Log In troubles [I]</font></table>
<br><font size=3><br>
</font>
<hr noshade><font size=3><br>
<br>
</font><font size=2><br>
1) </font><font size=3>The message </font><font size=2>"</font><font size=3>An
Existing connection was forcibly closed by the remote host</font><font size=2>
" means that the other side is terminating the connection. You
may not know why.</font><font size=3> <br>
<br>
2) </font><font size=2>"</font><font size=3>MsgSeqNum</font><font size=2>=1"
-- Ashutosh, I don't know what this means. That's not a setting.
If you put it in your config, QF will ignore it.</font><font size=3>
<br>
</font><font size=2><br>
3) Asking the other side to reset their sequence numbers is not a great
idea. They'll probably refuse.</font><font size=3> <br>
</font><font size=2><br>
Your ResetOnXXX settings must match up with their interface. If they
don't reset on logon, you shouldn't either. You can manually edit
your .seqnums file between app executions to match their expectation, or
you can let the transport layer fix itself with resend requests or whatnot.
(I forget the exact msg flow at the moment; in some scenarios the
two sides will work it out, in others they won't.)</font><font size=3>
<br>
<br>
</font><tt><font size=2><br>
_______________________________________________<br>
Quickfixn mailing list</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=mailto:Quickfixn@lists.quickfixn.com><tt><font size=2 color=blue><u>Quickfixn@lists.quickfixn.com</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com"><tt><font size=2 color=blue><u>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</u></font></tt></a><font size=3><br>
<br>
<br>
</font><font size=1 face="Arial"><br>
---</font><font size=2 face="Courier New"><br>
This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of
the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font>
<br><font size=3>_______________________________________________<br>
Quickfixn mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Quickfixn@lists.quickfixn.com><font size=3 color=blue><u>Quickfixn@lists.quickfixn.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com"><font size=3 color=blue><u>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</u></font></a><tt><font size=2>_______________________________________________<br>
Quickfixn mailing list<br>
Quickfixn@lists.quickfixn.com<br>
</font></tt><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com"><tt><font size=2>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>
<br><font size="1" face="Arial">---</font><br>
<font size="2" face="Courier New">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font>