[Live-devel] Updated RTSP server implementation to support multiple TCP connections per session - new experimental release

Ross Finlayson finlayson at live555.com
Fri Jul 27 06:04:20 PDT 2012


Oops, my mistake:

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").

But you can probably solve your 'protected fResponseBuffer' problem quite easily, by defining - in your "RTSPServer::RTSPClientConnection" subclass - a function:
	unsigned char* responseBuffer() { return fResponseBuffer; }

And then - in your "RTSPServer::RTSPClientSession" subclass - doing a "strstr()" to "ourClientConnection->responseBuffer()", rather than to "conn->fResponseBuffer".


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120727/16c94622/attachment-0001.html>


More information about the live-devel mailing list