<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"\7D14\6587\5B57 \5B57\5143";
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
span.a
{mso-style-name:"\7D14\6587\5B57 \5B57\5143";
mso-style-priority:99;
mso-style-link:\7D14\6587\5B57;
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-TW" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Yes, I called Medium::close(pointerToYourRTSPServerObject) to stop RTSP Server.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">But I found socket still exist after call that.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">The status is as following:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Before I call Medium::close, RTSP Server connects to VLC media player, and I run Windows system command "netstat -a" to check as following:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="color:#0070C0"> TCP 0.0.0.0:8554 VincentTestPC:0 LISTENING<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="color:#0070C0"> TCP 192.168.43.70:8554 Software-PC:56139 ESTABLISHED<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">After I call Medium::close, RTSP server still connects to VLC media player, and
</span><span lang="EN-US" style="font-family:"Courier New"">“</span><span lang="EN-US">netstat
</span><span lang="EN-US" style="font-family:"Courier New"">–</span><span lang="EN-US">a</span><span lang="EN-US" style="font-family:"Courier New"">”</span><span lang="EN-US"> shown as following:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> <span style="color:#0070C0">TCP 192.168.43.70:8554 Software-PC:56139 ESTABLISHED</span><o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">But if I terminate application,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">port 8554 will destroyed.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">What do they have any ideas about this?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Sorry that I am new to live555 project.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Thanks.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Vincent Kao<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">-----Original Message-----<br>
From: live-devel-bounces@ns.live555.com [mailto:live-devel-bounces@ns.live555.com] On Behalf Of Ross Finlayson<br>
Sent: Friday, May 20, 2011 2:22 AM<br>
To: LIVE555 Streaming Media - development & use<br>
Subject: Re: [Live-devel] About RTSPServer<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">>How do I stop RTSP Server(live555MediaServer.exe) except terminating
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">>live555MediaServer.exe?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">There's nothing wrong with just terminating the "live555MediaServer"
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">application? This will remove the process, and the operating system
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">will do all cleanup necessary (reclaiming memory, closing sockets,
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">etc.). That's what operating systems are for.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">If, however, you have a "RTSPServer" object running within an
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">application (i.e. process), and you want to delete (and reclaim) this
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">"RTSPServer" object - while keeping the rest of the process running -
<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">then you can do this simply by calling<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> Medium::close(pointerToYourRTSPServerObject);<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">You don't need to modify any of the supplied code.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">-- <o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Ross Finlayson<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Live Networks, Inc.<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">http://www.live555.com/<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">_______________________________________________<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">live-devel mailing list<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">live-devel@lists.live555.com<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">http://lists.live555.com/mailman/listinfo/live-devel<o:p></o:p></span></p>
</div>
CONFIDENTIALITY STATEMENT : The information, attachments and any rights attaching in this e-mail are confidential and privileged; it is intended only for the individual or entity named as the recipient hereof.Any disclosure, copying, distribution, dissemination
or use of the contents of this e-mail by persons other than the intended recipient is STRICTLY PROHIBITED and may violate applicable laws.If you have received this e-mail in error, please delete the original message and notify us by return email or collect
call immediately. Thank you.
</body>
</html>