[Live-devel] Detect proxy name before being proccessed

Jesús Leganés jesus.lc at vaelsys.com
Tue Jun 19 08:28:45 PDT 2012


Good afternoon. At this moment i'm needing to be able to detect what is the
proxy name a RTSPServer is being asked for, so i could be able to parse the
request path and build a RTSPProxyServerMedia on demand with the requested
data.

The fact is that looking at the documentation and the code, the only ones
places i could be able to do this seems to be overwritting
RTSPServer::handleRequestBytes() or
RTSPServer::RTSPClientSession::handleCmd_SETUP(). The first one seems to me
too much low level, since in fact is here where the parse of the request is
being done, and the former one don't have any way to capture the not found
proxy so i would be able to create it, since when the proxy is not found
handleCmd_notFound() is being called and the method is exited without
rechecking it. The only way i can be able to think about this is to
overwrite one of this two methods and check and create the proxy
unconditionally before executing it, but on both places is too much ugly
(handleRequestBytes() is too much generic and would need to parse the
request twice, one myself and another the one is doing right now, and
at handleCmd_notFound() it would be a client connection object doing things
related to the server).

There's another better way to do it?

Greetings, Jesús Leganés Combarro.


-- 
Jesús Leganés Combarro <jesus.lc at vaelsys.com>
Software developer at Vaelsys <http://www.vaelsys.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120619/48a7ea44/attachment.html>


More information about the live-devel mailing list