|
From: | Muhamad Ikhwan Ismail |
Subject: | RE: [lwip-users] PBUFS |
Date: | Tue, 4 Mar 2008 12:30:54 +0000 |
Hi, I had the same project integrating lwIP into MPC852T running an RTOS. I used PBUF_POOL for the data reception when i linked the pbufs to the buffer descriptor, this way i dont have to allocate memory for each pbufs. As for transmission it depends on which API you use. You really dont have to do much about pbufs, except initialising them with memory and linking them to the CPM buffer descriptor before reception and transmission. I used socket API, so UDP uses PBUF_REF/ROM as it just references the data it got from application, while TCP uses PBUF_RAM as it copies the data from the appplication buffer into the packet buffer. Hope that helps. Greetings M Ikhwan Ismail
Connect and share in new ways with Windows Live. Get it now! |
[Prev in Thread] | Current Thread | [Next in Thread] |