m_callback Use?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

m_callback Use?

911 Views
Gagiel
Contributor I
Hi,
I stay usin Interniche TCP/IP stack.

I'm triing to create a TCP client.
The problem it's simple; i don't understand the m_callback function ant their use :smileysad:
Can anyone explain me this or post an example?

Thanks
Labels (1)
0 Kudos
1 Reply

328 Views
Marreshe
Contributor I
Hi:
 
Don't know much about interniche TCP/IP, but generally a call back is a function pointer.  To implement in C it is rather easy, C++ a bit more difficult.  They are used primarily to provide notification to other parts of an application asynchronously.
 
For example,  in a network type app the HMI (GUI interface) may want to receive notification when the network is off line from the network module.  To do this the Gui Module would provide a function pointer to the network to update the network status on screen.
 
For more details see the following link: http://www.newty.de/old/ver5/CCPP/callback/callback.html
 
Hope this helps.
0 Kudos