[Live-devel] A question about DeviceSource.cpp and eventTriggers

Ross Finlayson finlayson at live555.com
Fri Dec 30 13:13:16 PST 2011


> So my question is why is this static?

"eventTriggerId" was made a static member variable of the "DeviceSource" class, because this code was intended as an illustration of how to encapsulate a *single* device - not a set of devices.

But yes, it could have been a non-static member variable instead.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111230/c43e7b58/attachment.html>


More information about the live-devel mailing list