[Live-devel] About RTSPServer

RA-Vincent Kao Vincent_Kao at ralinktech.com
Mon May 23 23:57:59 PDT 2011


Thanks for your response.
I am sure that ~RTSPServer is called(even run to ::closeSocket) when I call Medium::Close,
but socket still exists (check netstat -a).
And I know resources will automatically released by OS even if application does not release them before termination.
But I mean I just wonder Live555MediaServer.cpp sample does not do release resources actions before application termination.
Maybe it is just a "sample" so it does not need to do those.
Therefore, I investigated on Internet everywhere and tried to use Medium::Close,
because I don't want to stop RTSP server by application termination for my cause.
But it was still invalid,
so I posted my part of codes and maybe I need to do more things besides Medium::Close.
Additionally,
I call Medium::Close when streaming is running.

Thanks.
Vincent Kao

-----Original Message-----
From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Tuesday, May 24, 2011 2:15 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] About RTSPServer

>I post my source

Unfortunately few - if any - people on the mailing list have the time
to look through your source code.  However, You Have Complete Source
Code for the "LIVE555 Streaming Media" libraries.  You can see where
the RTSP server's socket gets closed (hint: line 220 of
"liveMedia/RTSPServer.cpp"), so you should be able to figure out why
that is not working for you.


>And I wonder why Live555MediaServer.cpp does not delete scheduler
>and env objects,
>how are these objects released when application is terminated?

The ***operating system*** releases all of the application's memory
(and sockets), when the application is terminated.

Unfortunately, you seem to have a very limited understanding of
"processes", and how operating systems handle them.

(This will be my last posting on this topic.)
--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
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.



More information about the live-devel mailing list