[Live-devel] Detecting when a RTSP server has gone offline
Ross Finlayson
finlayson at live555.com
Fri Jan 13 20:58:12 PST 2017
> On Dec 21, 2016, at 9:07 PM, Robin Imrie <robin.imrie at dotorigin.com> wrote:
>
> I have adapted the testRTSPClient application so I can see the data received from my RSTP server which sends SOAP packets when various events occur (no audio or video data). These data packets are not continuous. However when I unplug it from the network there isn’t any notification that the server is now unavailable.
>
> Do I need to periodically send keep alive messages?
I’m not quite sure what you’re asking, but - if you wish - you could modify your “testRTSPClient” application to periodically send an “OPTIONS” command to the server. Look at how “openRTSP” implements the ‘-K’ option; specifically, note the “checkSessionTimeoutBrokenServer()” function in “playCommon.cpp”.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list