<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Oops, my mistake:</div><div><br></div>I just took another look at your message, and realized that - because you want to modify the response buffer while handling a "SETUP" command - you probably do, indeed, need to subclass "RTSPServer::RTSPClientSession" as well (because "handleCmd_SETUP()" is a member function of "RTSPServer::RTSPClientSession").<div><br></div><div>But you can probably solve your 'protected fResponseBuffer' problem quite easily, by defining - in your "RTSPServer::RTSPClientConnection" subclass - a function:</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>unsigned char* responseBuffer() { return fResponseBuffer; }</div><div><br></div><div>And then - in your "RTSPServer::RTSPClientSession" subclass - doing a "strstr()" to "ourClientConnection->responseBuffer()", rather than to "conn->fResponseBuffer".</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>