lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] netbuf_data problem


From: Janusz U.
Subject: Re: [lwip-users] netbuf_data problem
Date: Mon, 25 Sep 2006 22:20:53 +0200

telnet ip 80
GET
here you will get server response
 
your problem I think is too small stack for your thread - try to use bigger
 
best rgs
Janusz
----- Original Message -----
Sent: Monday, September 25, 2006 6:02 PM
Subject: [lwip-users] netbuf_data problem

Hi,
 
 I wrote a simple TCP-server program base on Rowley webserver demo (from FreeRTOS website) using lwip for ARM7. To test my server, I use Telnet from Windows.
 
But I have a problem with this part of my code :
 
-----------------------------------------------------------------
portCHAR *pcRxString;
char * command;
 
for(;;)
{
    pxRxBuffer = netconn_recv( pxNetCon );
 
    if( pxRxBuffer != NULL )
    {
        netbuf_data( pxRxBuffer, ( void * ) &pcRxString, &usLength );
        strcat(command, pcRxString);
 
        /* Do something special */
 
        netbuf_delete( pxRxBuffer );
    }
}
-----------------------------------------------------------------
 
In Telnet, when I hit a caracter, the server receive the data, copy it in the command array and wait the next caracter. When I hit a second caracter, the server freeze in netbuf_data function, precisely at buf->ptr->payload.
 
Did someone know why ? How can I correct this ?
 
Regards
 
Nico


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]