Hi ,
In tcp client , its successfully sending the data to server and in response , the less data only receiving.I used lwip.1.4.1. I didn't make any changes in lwipopt.h , opt.h.
Below is my code in tcp_recv callbackfunction.
clientcallBackReceive(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) /*user defined function */
{
char *tempbuffer;
char storeBuffer[600];
void tcp_recved( pcb, p->tot_len);
tempbuffer=p->payload;
pbuf_free(p);
strcpy(storeBuffer,tempbuffer);
}
In this code , by using breakpoints in ccs . I can observe the tot_len as 366. but the data copied into the storeBuffer is only 201.
Please try to suggest me some solution for this .