<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Q:connection
time</title></head><body>
<blockquote type="cite" cite>&nbsp;&nbsp;&nbsp;<font face="Verdana"
size="-1"> What do you think it takes about 1 sec to execute these
line ?</font></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">In
playCommon.cpp</font></blockquote>
<div>&nbsp;</div>
<div>[...]<br>
</div>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp; char* optionsResponse =
getOptionsResponse(ourClient, url);</font></blockquote>
<div><br></div>
<div>[...]</div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp; char* sdpDescription&nbsp; =
getSDPDescriptionFromURL(ourClient, url, username,
password,&nbsp;proxyServerName,
proxyServerPortNum,desiredPortNum);</font></blockquote>
<div><br>
[...]</div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp; setupStreams();</font></blockquote>
<div><br></div>
<div>These statements each involve round-trip communication with the
server, to send the RTSP &quot;OPTIONS&quot;, &quot;DESCRIBE&quot;,
and &quot;SETUP&quot; commands, respectively, and get back a
response.</div>
<div><br></div>
<div>Almost all of the elapsed time for these commands comes from the
communication with the server.</div>
<div><br></div>
<blockquote type="cite" cite><font face="Verdana" size="-1">Please
tell me why it does take so long.</font></blockquote>
<blockquote type="cite" cite><font
face="Arial">&nbsp;</font></blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">And if
there is a way to reduce time, please give me an
advice.</font></blockquote>
<div><br></div>
<div>Yes, communicate with a faster, more responsive server :-)</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>