[Live-devel] Getting request headers in RTSPServer

Idan Freiberg idan at tokagroup.com
Sun Feb 21 22:00:37 PST 2021


Thanks Ross

I specifically looking for the host address /IP form the requests.


בתאריך יום ב׳, 22 בפבר׳ 2021 ב-0:18 מאת Ross Finlayson <
finlayson at live555.com>:

>
>
> > On Feb 21, 2021, at 1:58 PM, Idan Freiberg <idan at tokagroup.com> wrote:
> >
> > Hello,
> >
> > Is it possible to fetch or extract RTSP requests headers such as
> DESCRIBE/OPTIONS/... like getting the *full* URL passed to the server, eg.
> DESCRIBE rtsp://<host>/params (including the host part) ?
> >
> > What’s the best way to achieve this?
>
> For “DESCRIBE”: Note that the virtual function
> “RTSPServer::handleCmd_DESCRIBE()” takes a parameter “fullRequestStr”,
> which will be the complete RTSP “DESCRIBE” request.  You could subclass the
> class “RTSPServer”, and, in your subclass, reimplement
> “RTSPServer::handleCmd_DESCRIBE()” to do whatever you want with
> “fullRequestStr” (and then call “RTSPServer:: handleCmd_DESCRIBE()” to do
> the real work).
>
> But a better question is: Why specifically do you want to do this?  What
> information do you think is in these RTSP requests that you feel our
> existing server implementation is not already using the way you want?
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-- 

*Idan Freiberg *Software Engineer

Tel. + 972 522  925 213 |  Toka

idan at tokagroup.com | www.tokagroup.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20210222/ad19c993/attachment.htm>


More information about the live-devel mailing list