[英]how is the callback function called in udp_recv in lwip
I am going through an example code of udp lwip server , and I am confused as to how the udp_recv_perf_traffic
callback function is called from the udp_recv
function.我正在浏览 udp lwip server的示例代码,我很困惑
udp_recv_perf_traffic
回调 function 是如何从udp_recv
ZC1C425268E687A945D 调用的How does the system know that it has received a datagram, is there a flag the udp_recv function checks?系统如何知道它收到了一个数据报,udp_recv function 检查是否有标志?
https://doc.ecoscentric.com/ref/lwip-api-raw-udp-recv.html https://doc.ecoscentric.com/ref/lwip-api-raw-udp-recv.html
The routine udp_recv_perf_traffic() isn't called from upd_recv;例程 udp_recv_perf_traffic() 不是从 upd_recv 调用的; it's registered as a callback function, meaning that udp_recv_perf_traffic() is invoked when a UDP datagram is received.
它注册为回调 function,这意味着当收到 UDP 数据报时会调用 udp_recv_perf_traffic()。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.