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