<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<blockquote
cite="mid:27A94201-EB1C-46B5-B668-0DDB6339A0E3@live555.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>
<blockquote type="cite">What's the correct way for my derived
class to write a response? Currently the only solution I can
see is to also derive from RTSPClientConnection and add a new
function that forwards to setRTSPResponse (it's not virtual,
so I can't just override it). However it seems like
setRTSPResponse() should simply be public.</blockquote>
<br>
</div>
<div>Making the (4) "setRTSPResponse()" functions public wouldn't
be ideal (because we don't want *anyone* to be able to call
these functions), but because it solves your problem, it's
probably a reasonable hack to make in the code. (It'll be
included in the next release of the software.)</div>
<br>
</blockquote>
<br>
Thanks Ross! I just realised it might be neater to provide
forwarding functions in RTSPClientSession, eg:<br>
<br>
protected:<br>
void setRTSPResponse(RTSPServer::RTSPClientConnection*
ourClientConnection, char const* responseStr) {
ourClientConnection->setRTSPResponse(responseStr); }<br>
// Repeat for the other three variants<br>
<br>
That way, RTSPClientSession-derived classes can utilise the friend
access to RTSPClientConnection. Still not ideal, but better than
making them public?<br>
<br>
Regards,<br>
Scott<br>
<br>
<br>
</body>
</html>