m_callback Use?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

m_callback Use?

921 次查看
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
标签 (1)
0 项奖励
1 回复

338 次查看
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 项奖励