<> wrote in message
news: ups.com...
> Hi,
>
> Would you tell me what callback function is used? Why we need it? I
> searched the web. But most webpages only mention that how to use it but
> not why to use it.
>
> Best wishes,
> Peng
>
I'd also say that callback functions can be used for updates, sort of like
hooking into another function. For example, consider a function that
downloads files using http. Your application may want to display progress
to the user. You could pass a callback function (display progress) into the
download function so that it calls your display function everytime it reads
from the socket. At least that is my understanding...
Kyle