[Red5] Spring Dao, Mysql, PlaybackSecurity not rejecting clients questions

Edward Yakop edward.yakop at gmail.com
Wed Oct 24 06:48:33 PDT 2007


> The problem here is searching the resulset List against the scope name
> without having to iterate through the whole thing, is it possible ?

Yes. It is possible, why don't u keep the dao around, and instead, call
List<StreamPoint> dao.getStreamPointByScopeName( scope.getName() ); ?
if dao returns an empty list, you know it's not allowed, otherwise it
is allowed.

You could also add a synchronized map to keep the result in a cache.

> I've also noticed returning false doesnt reject the client
> automatically, is that intended to implement yourself ?
> Is there a similar class but for rejecting connections ?

Not sure what is the problem, but it works for me, when I return false.

And in regards to rejecting connection, You can reject the client instead.
Look at [org.red5.server.ClientRegistry] class and override the
newClient method. The params are the parameters being passed when
NetConnection#connect( ... ) is invoked and to reject the client, just
throw [ClientRejectedException].

Regards,
Edward Yakop



More information about the Red5 mailing list