>> My question I don't see any arguments passed to callback functions : udp_recv() and TFTPRecv(). >> How are the arguments going to be filled up and by whom?? Jin After review of the udp.c code, it looks to me that udp_recv is a setup function (not a callback...), and you use it to tell lwIP what function to call with UDP traffic. Once set up, your TFTPRecv function is called in the udp.c module by one of these two lines (in lwIP 1.4.0): mpcb->recv(mpcb->recv_arg, mpcb, q, ip_current_src_addr(), src); ... pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src); Hope that helps! Marty
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
