[Top][All Lists]

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

Re: [lwip-users] opening multiple sockets fails

From: Dennis Borgmann
Subject: Re: [lwip-users] opening multiple sockets fails
Date: Wed, 19 Oct 2011 13:48:53 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


This was the error:

 #define MEMP_NUM_UDP_PCB        1

It needs to be set to

 #define MEMP_NUM_UDP_PCB        2

then multiple connections are possible.

Best regards,

Am 19.10.2011 10:56, schrieb Simon Goldschmidt:
Dennis Borgmann<address@hidden>  wrote:
It seems like lwIP does not like this. As soon as I open more than one
socket, the return value of socket is negative.
a) A more detailed error number is saved in 'errno'. You should try to get that 
value somehow to see what's wrong (error numbers are defined in arch.h).
b) It could be that you just have configured available memory too low. In that case, 
available resources wouldn't allow you to create a 2nd socket. In that case, you should 
go through lwipopts.h and increase the some configuration options (see comments in opt.h 
and the lwip wiki - "http://lwip.wikia.com/wiki/Lwipopts.h"; - for an 


reply via email to

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