Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Thank you for your reply.regarding to second question: it works exactly as you have described. Regarding to the first question: As i understand, i must to specify the callback function. At which stage do i must to do it? In your code(example),as i uns=derstand, i must to insert reading function where i put stars.Is it correct? // Process lwIP timer dependent code if(lwipProcessTimerFlag) lwipProcessTimers(); // Poll lwIP for incoming packets. ethernetif_input(&alteraTseNetif); *************************** Where i puted the stars, do i must to specify the callback function? --- Quote End --- This http code in this example is also an example that shows how to handle the callback from accept and how to set the tcp_recv. It also shows how to process received data. You should model any code that will make a connection and send and receive data like this one does. Bill