473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What are call back handlers

Hi. Can anyone tell me what are call back handlers and how they are useful in Embeded Systems
Dec 10 '08 #1
2 2424
Banfa
9,065 Expert Mod 8TB
A callback handler is a (handler) function whose pointer you pass to another (worker) function which will get called back by the worker function in given situations. Like the compare function you pass to qsort, you have to write a callback handler to do the compare for the objects you are sorting and pass a pointer to it to qsort which then calls it as required to perform the sort.

Asking how callback functions are useful in an Embeded System is a bit like asking how the for statement is useful in an Embeded System. There is no specific instance of them being useful they are just a general construct available to the C programmer.
Dec 10 '08 #2
ashitpro
542 Expert 512MB
Look at this link:
Callback (computer science) - Wikipedia, the free encyclopedia

Good examples are,

creating thread using pthread library,
ajax,
signal handlers.

Regards,
Ash
Dec 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: [Yosi] | last post by:
I have an API, with a call back error definition. API receive reference to C# output message function (write to text box using Invoke since I use thread). Every thing is working fine API can...
4
by: david | last post by:
Hello, From a web aspx page I need to call a two proc’s. The first proc returns the data quickly which I want populate a data grid. The second proc does some heavy processing so when it’s...
1
by: John Wright | last post by:
All, I had a website implementing the ICallBackEventHandler with the corresponding GetCallbackEventReference. On my web form I had two text boxes, one to enter text the other to read the...
0
by: Guru | last post by:
Hi, I have been trying for a long time now to incorporate Call back for GridView so that I can page through the data without the whole page reloading. I havent been successfull till now. Has...
2
by: archana | last post by:
Hi all, I am processing asynchronous web request with setting timeout using RegisterWaitForSingleObject. On beginwebrequest i am sending address of one callback which i want to execute when...
2
by: Zytan | last post by:
During a TCP connection, using standard Sockets, when the other end decides to cancel the connect, before the socket is disconnected, the call back to receive the incoming data gets called 100's...
11
by: sameer.oak | last post by:
I am looking for some comprehensive tutorials on how to write call back functions in C. Can anyone help me? - sameer oak.
1
by: sathiyacg | last post by:
hi.... im using dropdownlist for loading company name from database. wen im changing values in the dropdownlist the page get postback. is it possible to use client call back.... how can i...
0
markmcgookin
by: markmcgookin | last post by:
Hi, I have a web service that I call from a winforms application. This web service can be cancelled, or completed,and then will call back the win forms application with a response (i.e. e.Complete...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.