lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] netconnect_listen ERR_MEM w/ multiple sockets


From: kenneth . jackson
Subject: [lwip-users] netconnect_listen ERR_MEM w/ multiple sockets
Date: Fri, 21 Oct 2011 00:19:53 -0400 (EDT)


Here is my problem:
 
I want to create two sockets, one for an HTTP server and the other for Telnet.
 
Independently (only one of them has been compiled in),  they both work.  However when I complied both in, one will work and the other will return a
ERR_MEM ( Out of memory error) code after calling netconn_listen( struct netconn *conn ).
 
As you can see from the following code snippets, the functions are pretty much the same except for the port #.

portTASK_FUNCTION( vBasicTelnet, pvParameters ){

struct netconn *pxTCPListener, *pxNewConnection;

pxTCPListener = netconn_new( NETCONN_TCP );

netconn_bind(pxTCPListener, IP_ADDR_ANY, 23 );

netconn_listen( pxTCPListener );

....

}

portTASK_FUNCTION( vBasicHTTP, pvParameters ){

struct netconn *pxHTTPListener, *pxNewConnection;

pxTCPListener = netconn_new( NETCONN_TCP );

netconn_bind(pxHTTPListener, IP_ADDR_ANY, 80 );

netconn_listen( pxHTTPListener );

....

}

At this point, any direction towards the resolution would be very much appreciated.

I'm using lwIP 1.3.2.

Ken


reply via email to

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