I'm using LPC1788 from NXP Bare Metal with NO RTOS [Raw API mode] and I'm looking for an example using LwIP as a TCP socket server.
My app needs to receive data over the socket and process it to generate a response buffer to be transmitted beack to the client.
I start using LwIP tcpecho_raw example to modify it but the response is just the incomming data and it's in the incomming pbuf.
I've tried to use the same pbuf and tcp_write function but it seems there's something wrong...
Is there an example code to do this ?? : 1 .Server receive data 2. Load RX_BUFFER with socket data 3. Process RX_Buffer 4. Generate TX_BUFFER 5. Send TX_BUFFER back to the client ??
Do I need to create another pbuf (or linked pbuf) for the response ?
Thanks in advance for your time. Regards, Gus