title: Quickfix Socket Error: Connection reset by peer c++
body: <p>I'm getting a "Socket Error: Connection reset by peer" message using the tradeclient c++ demo code from the quickfix download.</p>
  
  <p>another user commented that it was related to network issues. if anyone has the solution it would be appreciated.</p>
  
  <p><a href="https://stackoverflow.com/q/26544335/4383012">QuickFix C++ Socket Error Connection Reset By Peer?</a></p>
  
  <pre><code>&lt;20141221-17:32:11.049, FIX.4.4:myusername-&gt;hostusername, event&gt;
        (Created session)
      &lt;20141221-17:32:11.056, FIX.4.4:myusername-&gt; hostusername, event&gt;
        (Connecting to fix.hostusername.com on port 5001)
      &lt;20141221-17:32:11.221, FIX.4.4:myusername-&gt; hostusername, outgoing&gt;
        (8=FIX.4.49=10735=A34=149=myusername =20141221-17:32:11.21856= hostusername    98=0108=30141=Y10=000)
      &lt;20141221-17:32:11.221, FIX.4.4:myusername-&gt; hostusername, event&gt;
        (Initiated logon request)
      &lt;20141221-17:32:11.253, FIX.4.4:myusername-&gt; hostusername, event&gt;
        (Socket Error: Connection reset by peer.)
      &lt;20141221-17:32:11.253, FIX.4.4:myusername-&gt; hostusername, event&gt;
        (Disconnecting)
  </code></pre>
  
  <p>think i found the reason. the host I'm trying to connect with is using quickfix java which supports SSL. the quickfix c++ client doesn't seem to support the SSL enable tag in the session settings. finally had to resort to wireshark to determine this. i searched all over the web and many people were reporting this similar error. i hope this post saves them any anyone in the future from debugging endlessly to solve this "Socket Error: Connection reset by peer" error.</p>