<div>Hello, All,</div> <div> </div> <div>I am doing Client/Server network progarmming by using ACE. Between Client and Server, I tried two kinds of connections, one connection is TCP connection and another one is SSL connection. through testing, I found TCP connection is much faster than SSL connection. For example, when I send some data by TCP connection, it will take 17s. however when I send same data by SSL connection. it will take 79s. I know SSL connection should be slower than TCP connection. do you think it should be so slow? what I did is as following:</div> <div> </div><FONT size=2> <div></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>SSLConnection</FONT><FONT size=2>) //ssl connection</div> <div>{</div> <div> send_cnt = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>->peer ().sendv_n (iov, 2);</div>
<div>}</div> <div></FONT><FONT color=#0000ff size=2>else //TCP connnection</div></FONT><FONT size=2> <div>{</div> <div> send_cnt = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>->peer ().peer().sendv_n(iov, 2); </div> <div>}</div> <div> </div> <div>all code is same except for the above parts.</div> <div> </div> <div>thank you very much for your comments and suggestion in advance.</div> <div> </div> <div>Richard</div> <div> </div> <div> </div> <div></FONT> </div><p> 
<hr size=1>Get the Yahoo! toolbar and <a href="http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.php">be alerted to new email </a>wherever you're surfing.