Hi Ross,
My RTSP client application needs to recognize disconnect event triggered
from the RTSP server. But I could not find any way to get such event. By
debugging I could see the disconnect event happening inside the function
RTSPClient::handleResponseBytes() when the argument
'newBytesRead' has a value of -1.
Could you provide a virtual function so that the derived class can subclass
to receive the
disconnect event?
The implementation may be like this:
class RTSPClient {
...
protected:
virtual void OnConnectionClose() {};
};
RTSPClient::handleResponseBytes(int newBytesRead)
{
if (newBytesRead < 0) {
// likely disconnected
OnConnectionClose();
}
...
}
Thank you.
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel