lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] [LWIP in NIOS II] I want to send and receive some chara


From: Ben
Subject: Re: [lwip-users] [LWIP in NIOS II] I want to send and receive some characters in tcp by ethernet.
Date: Wed, 13 Feb 2008 18:27:24 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)






Jonathan Larmour a écrit :
Benoît exterminabur wrote:
So , I have echo.c,httpd.c ....

With these fonctions ,I want just to send a variable or some characters
(sentences) , or receive some characters (like "STOP", "RECORD") on the
ethernet in tcp.

But I don't know how realise that correctly.
An example of what I want to do is a send of a text each second.

So I use telnet from winXP to listen ethernet :
and I want to see after connection of telnet like this :
Version N°1.o (1sec)Version N°1.0 (1 sec) ....

Is this on eCos? Just curious.

Assuming I'm looking at the same file, the echo.c example uses the raw API.
It may be simpler to look at an example which uses a simpler API such as
the netconn API, or the sockets API.

Your source tree may include a tcpecho.c example program. That uses the
netconn API and is much simpler.

Once you have a good example to start from, it should be easier to add to
it to do what you want to do. For the netconn API (also known as the
sequential API) documentation look at
http://www.sics.se/~adam/lwip/doc/lwip.pdf which is from Adam Dunkel's lwIP
website.

Jifl

Not exactly
it's Nios II Processor from altera on a Cyclone II processor/chipset.

Thanks for help ? I work on your answer.

I want to use ethernet module on my Nios Project (quartus 6.0) with SOPC Builder.
I need to send or receive some characters on it.

Ben




reply via email to

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