lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] a beginners questions about lwip, sockets and threads


From: ake . forslund
Subject: Re: [lwip-users] a beginners questions about lwip, sockets and threads
Date: Wed, 25 May 2011 09:07:08 +0200

Thanks,

the reasons for upgrading were pretty convincing and the upgrade was pretty smooth I must say. Even if the documentation don't seem to be quite up to date. I'll see if I can find time to update the wiki tonight.

For now I'll try to get a socket example working in cygwin and then see if I can get the same code to execute under lwip.

/Åke

-----------------------------
Åke Forslund
0433-273296
NIBE AB
Box 14
S-285 21  Markaryd
Tel +46-(0)433-273296



From: Kieran Mansley <address@hidden>
To: Mailing list for lwIP users <address@hidden>
Date: 2011-05-24 15:30
Subject: Re: [lwip-users] a beginners questions about lwip, sockets and threads
Sent by: address@hidden





On Tue, 2011-05-24 at 15:14 +0200, address@hidden wrote:
> 1. Can I use threads? One to receive and one to transmit data and
> then
> check if the data arrives correctly?

You can, but I would do it all in one thread, and use poll() to
determine when each socket needs attention (either sending or
receiving).

> 2. Should I use TCP or UDP-sockets (SOCK_STREAM/SOCK_DGRAM)

Either.

> 3. Are the unit tests for porting or for the developers of the stack?
> (I've looked for info on this but I haven't found an answer yet)

Not really, no.

> 4. I'm currently running 1.3.2 is there any reason to upgrade to
> 1.4.0
> besides the new number?

Yes: (i) you're likely to get much better support from the developers if
you're using 1.4.0; (ii) lots of bug fixes; (iii) improved performance;
(iv) etc!

Kieran


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



reply via email to

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