lwip-users
[Top][All Lists]
Advanced

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

RE: RE: Re: [lwip-users] Struggling to build a TCP echo server


From: bill
Subject: RE: RE: Re: [lwip-users] Struggling to build a TCP echo server
Date: Thu, 5 Feb 2009 10:54:50 -0500

If by TCP_* API you mean the RAW API in lwIP terms, yes, it’s the only API I use.  I do so strictly for performance reasons and because we don’t use an OS (in the lwIP sense of the term).  If you have an OS I’d use the netconn or socket API?  The latter will give you pretty good compatibility at the application level.  If you don’t have an OS (the NO_SYS=1 lwIP setting) start with the httpserver_raw demo and use that as a base for sending and receiving data.  Just do your echo server in those callbacks.

 

Bill

 

From: address@hidden [mailto:address@hidden On Behalf Of Chen
Sent: Thursday, February 05, 2009 10:19 AM
To: address@hidden
Subject: Re: RE: Re: [lwip-users] Struggling to build a TCP echo server

 

Bill, thanks again for your time!

Is there any one in this group uses TCP_* APIs to write his/her codes?

ATMEL's samples do not use them, and I couldn't google out any code that actually uses them, either

Regards,

Chen



Date: Thu, 5 Feb 2009 09:36:24 -0500
From: "bill" <address@hidden>
Subject: RE: Re: [lwip-users] Struggleing to build a TCP echo server
To: "'Mailing list for lwIP users'" <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset="us-ascii"

The problem is you can't just call tcp_tmr repeatedly in a loop as you're
doing.  The docs for the function (in the code) say it should be called
every 250mS.


Bill


reply via email to

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