[Top][All Lists]

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

AW: [lwip-users] How can I use "lwip" to build up a tcp-client?

From: Daniel Klingler
Subject: AW: [lwip-users] How can I use "lwip" to build up a tcp-client?
Date: Fri, 19 Aug 2005 14:53:25 +0200

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();


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.




TES Electronic Engineering GmbH
Daniel Klingler, Dipl.-Ing.
Consultant Digital Design

Zettachring 8
70567 Stuttgart
Tel.: 0711/7287 7450
Fax:  0711/7287 7451

-----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.


Alberto Martin-Ortega
Hardware Engineer
Tls: +34 914.904.060 -- +34 687.807.159
Fax: +34 916.614.515
Email: address@hidden

reply via email to

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