[Live-devel] RTSP server extending
Ross Finlayson
finlayson at live555.com
Fri Apr 20 11:34:07 PDT 2007
>On 10/04/07, Vlad Seryakov <vlad at crystalballinc.com> wrote:
>>I may use it in the closed network environment where i do not
>>authenticate by user name only but using IP address and/or MAC address
>>in addition.
>
>I faced the same problem where the server should reject clients based
>on the camera url-ip address. The solution was to patch RTSPServer
>class to add to it the following function:
>
> virtual Boolean checkClientAccess(int clientSocket, char const* urlSuffix);
>
>The default implementation returns true meaning that there is no
>restrictions on cleints. A subclass can override it to return false
>under some conditions. In that case RTSPServer replies with 401
>Unauthorized without setting any digest headers.
Thanks for the patch.
I have now added your patch to the code (although I changed the name
of your function to "specialClientAccessCheck"), and have included it
in a new release (2007.04.20) of the "LIVE555 Streaming Media"
software.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list