[Live-devel] RTSP server extending

Igor Bukanov igor at mir2.org
Tue Apr 24 02:02:08 PDT 2007


On 24/04/07, Igor Bukanov <igor at mir2.org> wrote:
> On 24/04/07, Ross Finlayson <finlayson at live555.com> wrote:
> > OK, in the latest version of the software (2007.04.24, released
> > today), the signature of the "specialClientAccessCheck()" virtual
> > function has been chanegd to:
> >         virtual Boolean specialClientAccessCheck(int clientSocket,
> > struct sockaddr_in& clientAddr,
> >                                                         char const* urlSuffix);
> >
> > Note the new "clientAddr" (it's a sockaddr_in, so it has the client's
> > port as well as its IP address).
>
> With the patch I submitted I missed that clientAddr is already
> available in RTSPServer and used getpeername to obtain it from
> clientSocket. The new signature saves this call. Nice!

Actually there is problem here with sockaddr_in. It explicitly
excludes sockaddr_in6. It would better just to use sockaddr to
simplify IPV6 porting later.

Regards, Igor


More information about the live-devel mailing list