<!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> <font face="Verdana"
size="-1"> What do you think it takes about 1 sec to execute these
line ?</font></blockquote>
<blockquote type="cite" cite> </blockquote>
<blockquote type="cite" cite><font face="Verdana" size="-1">In
playCommon.cpp</font></blockquote>
<div> </div>
<div>[...]<br>
</div>
<blockquote type="cite" cite><font face="Arial"
size="-1"> char* optionsResponse =
getOptionsResponse(ourClient, url);</font></blockquote>
<div><br></div>
<div>[...]</div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial"
size="-1"> char* sdpDescription =
getSDPDescriptionFromURL(ourClient, url, username,
password, proxyServerName,
proxyServerPortNum,desiredPortNum);</font></blockquote>
<div><br>
[...]</div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial"
size="-1"> setupStreams();</font></blockquote>
<div><br></div>
<div>These statements each involve round-trip communication with the
server, to send the RTSP "OPTIONS", "DESCRIBE",
and "SETUP" 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"> </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>