what is need for a handler in general

Posted by nish on Programmers See other posts from Programmers or by nish
Published on 2013-11-05T08:28:46Z Indexed on 2013/11/05 10:10 UTC
Read the original article Hit count: 338

Filed under:
|

I have been searching for a definition for handler. basics i've understood that "A handler is a piece of code that is called when something happens, and usually takes some action, like generating a response." - (from http://stackoverflow.com/questions/3246200/what-is-an-handler ). But that can be a trigger or a callback. Also in specific an event handler on a low-level , often works by polling a device and waiting for a hardware response.

So, what is the specific role of a handler ( that makes it unique from a trigger or a callback or any other such function ). Do all handlers have similar role ( event handler, file handler , exception handler, error handler )...

© Programmers or respective owner

Related posts about concepts

Related posts about definition