On Wed, Sep 07, 2016 at 10:12:58AM -0700, Ross Finlayson wrote:
> It depends.  Most of the “createNew()” functions just do
>       return new SomeConstructor();
> Should that fail, then things are TARFU anyway (see 
> https://en.wikipedia.org/wiki/List_of_military_slang_terms#TARFU :-)

In this context, I wonder what you meant in 2009, when you wrote:
http://lists.live555.com/pipermail/live-devel/2009-September/011183.html
| - Write a subclass of "RTSPServer" that
|       - adds a 'client session counter' member variable
|       - redefines the "createNewClientSession()" member function to
|               - just return if the counter is already at its limit
|               - otherwise increment the counter and create a new 

"just return" sounds a lot like "return NULL", but since that
createNewClientSession doesn't take any parameters by your claim above
it must not return NULL. Did you suggest to return something else?

Of course, 6 years is a lot of time and the context may have changed,
does the advise from 2009 still hold?

Helmut
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to