-----Ursprüngliche
Nachricht-----
Von:
address@hidden
[mailto:address@hidden] Im Auftrag von Alberto
Martin-Ortega
Gesendet: Montag, 22.
August 2005
10:10
An: Mailing list for
lwIP users
Betreff: Re: AW:
[lwip-users] How
can I use "lwip" to build up a tcp-client?
Hi Daniel,
The echo server you are using works with the raw api and not
with the socket one. Therefore you are probably on a standalone
environment,
without any operative system. You can find info about the raw api on
your
project directory, it will be something like this:
..\ppc405_0\libsrc\lwip_v2_00_a\src\lwip\doc -> rawapi.txt
Here you can find some good info about what functions you are going to
need to
build your tcp client application.
The truth is that I have not implemented any tcp-client app, however I
have two
tcp-servers and a udp-client running altogether in one PPC inside a
Virtex2p7.
By the way, are you using lwip 2.0 or 1.0? If you are using lwip 1.0 I
strongly
recommend you to use lwip 2.0 if you can. It has a lot of errors
corrected.
You could check this and read rawapi.txt if you havent already, and
then we
could see how to build this tcp-client app. Can you send what you are
doing in
the one it is not working? Maybe we can figure out what is wrong on it.
Good luck Daniel..
Alberto.
----------------------------------------
Alberto Martin-Ortega
Hardware Engineer
IFARA TECNOLOGIAS S.L.
Tls: +34 914.904.060 -- +34 687.807.159
Fax: +34 916.614.515
Email: address@hidden
----------------------------------------
Daniel Klingler wrote:
Hi
Alberto, thank you for
your quick answer!
We
use tcp. We had set up
all the others with tcp and now we won’t change it to udp.
I
thing we are using
Socktes. For the server we used the example from Xilinx, like below:
-
bind server to a
specified port:
pcb
= tcp_new();
tcp_bind(pcb,
IP_ADDR_ANY, FREQ_CHANGE_PORT);
pcb
= tcp_listen(pcb);
tcp_accept(pcb,
freq_change_accept);
-
accept a client to
communicate:
tcp_recv(pcb,
freq_change_recv);
tcp_err(pcb,
freq_change_err);
tcp_poll(pcb,
freq_change_poll, 1);
Now
I will set up a
client in the PPC on the Xilinx FPGA. I will set up on the same PPC a
client
and a server. They shall work independent.
I
hope you can help me
more.
Regards
Daniel
---------------------------------
TES Electronic Engineering GmbH
Daniel Klingler, Dipl.-Ing.
Consultant Digital Design
Zettachring 8
70567 Stuttgart
Tel.: 0711/7287 7450
Fax: 0711/7287 7451
address@hidden
www.tesbv.com
---------------------------------
-----Ursprüngliche
Nachricht-----
Von: address@hidden
[mailto:address@hidden]
Im Auftrag von Alberto
Martin-Ortega
Gesendet: Freitag, 19.
August 2005
12:47
An: Mailing list for
lwIP users
Betreff: Re:
[lwip-users] How can
I use "lwip" to build up a tcp-client?
Hi Daniel,
there are some things that you have to do before using LwIP on PPC405.
- Are you using the RAW API or the Sockets API? If you are
using sockets you should know that are going to need the XilKernel up
in order
to have multithreading. However, if you want to use the RAW API, you
wont need
any OS, so you will work standalone system.
- Do you want a tcp or an udp client? TCP has more needs as,
timers and some calls to other funtions. UDP is much more easier.
Give me some more feedback about this things and I will help you
through this
tedius (not much) duty.
Regards
Alberto.
----------------------------------------
Alberto Martin-Ortega
Hardware Engineer
IFARA TECNOLOGIAS S.L.
Tls: +34 914.904.060 -- +34 687.807.159
Fax: +34 916.614.515
Email: address@hidden
----------------------------------------
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users