Hi everyone!
Since I found no solution for my connection problem (http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1690), I'm searching for illustrive example code to manage multiple connections using LWIP.
It would be nice if anyone could post such code.
Thanx!
Search found 4 matches
- Fri Apr 25, 2014 2:32 pm
- Forum: General Support
- Topic: LWIP example with multiple connections
- Replies: 1
- Views: 2322
- Thu Feb 27, 2014 11:14 am
- Forum: General Support
- Topic: LWIP multiple connections
- Replies: 4
- Views: 8067
Re: LWIP multiple connections
Hi everyone!
Because I'm still suffering the same problem I should ask some fundamental questions.
Is it possible to use 2 connections in two different threads? Or must I handle both connections in a single thread?
As can be seen a in the code snippet of main.c I created three thread. One for lwip ...
Because I'm still suffering the same problem I should ask some fundamental questions.
Is it possible to use 2 connections in two different threads? Or must I handle both connections in a single thread?
As can be seen a in the code snippet of main.c I created three thread. One for lwip ...
- Fri Feb 07, 2014 11:25 am
- Forum: General Support
- Topic: LWIP multiple connections
- Replies: 4
- Views: 8067
Re: LWIP multiple connections
I increased LWIP_THREAD_STACK_SIZE in lwipthread.h and MEM_SIZE in lwipopts.h by factor of ten.
Unfortunatly, this makes no difference. When a connection at port 12345 is established, the connection at port 7 fails.
By the way, netconn_accept doesn't return, it stays blocked. If there is a problem ...
Unfortunatly, this makes no difference. When a connection at port 12345 is established, the connection at port 7 fails.
By the way, netconn_accept doesn't return, it stays blocked. If there is a problem ...
- Thu Feb 06, 2014 3:57 pm
- Forum: General Support
- Topic: LWIP multiple connections
- Replies: 4
- Views: 8067
LWIP multiple connections
Hi everyone!
I desperately try to establish three TCP/IP connections (Port 12345, 7 and 80) to a STM32 Discovery board (extended by a ethernet phy, ChibiOs 2.6.2 / LWIP1.4.1).
Each connection is handled by it's own thread.
Unfortunatly, only one connection can be established at the same time.
The ...
I desperately try to establish three TCP/IP connections (Port 12345, 7 and 80) to a STM32 Discovery board (extended by a ethernet phy, ChibiOs 2.6.2 / LWIP1.4.1).
Each connection is handled by it's own thread.
Unfortunatly, only one connection can be established at the same time.
The ...