[Live-devel] Q: incomingRequestHandler(): param 2
Ross Finlayson
finlayson at live555.com
Thu Nov 29 18:58:09 PST 2007
>Why do all the 'incomingRequestHandler()' functions take an integer
>parameter which has no name?
>
>In RTSPServer.hh:
>static void incomingRequestHandler(void * clientData, int /* mask */);
It's to allow for the possibility of handlng socket events other than
'socket is readable'. E.g., one could define a "TaskaScheduler"
subclass that also handled 'socket is writeable' events. (As you
noted, though, this functionality isn't currently used at all in the
released code.)
--
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/20071129/2bd49636/attachment.html
More information about the live-devel
mailing list