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 ){ vBasicTelnet, pvParameters ){
struct netconn *pxTCPListener, *pxNewConnection; struct netconn *pxTCPListener,
*pxNewConnection;
pxTCPListener = netconn_new( NETCONN_TCP ); pxTCPListener = netconn_new(
NETCONN_TCP );
netconn_bind(pxTCPListener, IP_ADDR_ANY, 23 ); netconn_bind(pxTCPListener,
IP_ADDR_ANY, 23 );
netconn_listen( pxTCPListener );
....
}
portTASK_FUNCTION( vBasicHTTP, pvParameters ){ vBasicHTTP, pvParameters ){
struct netconn *pxHTTPListener, *pxNewConnection; struct netconn
*pxHTTPListener, *pxNewConnection;
pxTCPListener = netconn_new( NETCONN_TCP ); pxTCPListener = netconn_new(
NETCONN_TCP );
netconn_bind(pxHTTPListener, IP_ADDR_ANY, 80 ); netconn_bind(pxHTTPListener,
IP_ADDR_ANY, 80 );
netconn_listen( pxHTTPListener );
....
} netconn_listen( pxHTTPListener );
....
}
At this point, any direction towards the resolution would be very much
appreciated.
I'm using lwIP 1.3.2.
Ken netconn_listen( pxTCPListener );
....
}
portTASK_FUNCTION( vBasicHTTP, pvParameters ){ vBasicHTTP, pvParameters ){
struct netconn *pxHTTPListener, *pxNewConnection; struct netconn
*pxHTTPListener, *pxNewConnection;
pxTCPListener = netconn_new( NETCONN_TCP ); pxTCPListener = netconn_new(
NETCONN_TCP );
netconn_bind(pxHTTPListener, IP_ADDR_ANY, 80 ); netconn_bind(pxHTTPListener,
IP_ADDR_ANY, 80 );
netconn_listen( pxHTTPListener );
....
} netconn_listen( pxHTTPListener );
....
}
At this point, any direction towards the resolution would be very much
appreciated.
I'm using lwIP 1.3.2.
Ken_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users