lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] help: how to use interrupt in RAW_API mode under Xilinx


From: Sathya Thammanur
Subject: Re: [lwip-users] help: how to use interrupt in RAW_API mode under Xilinx-V2
Date: Tue, 24 Oct 2006 15:54:24 -0700

Ye Wu,
RAW API does not use any of the kernel services like mailboxes, semaphores. The RAW API works on a callback mechanism as in the application, call back functions should be registered with the lwIP stack for various events associated with a protocol.

Hope this helps in understanding. Attached is a TCP based echo server example which you can use for your understanding. Along similar lines, UDP events need to be registered with stack (depending on whether you use server or client).

Sathya


On 10/19/06, ye wu <address@hidden> wrote:
Sathy,

Thanks very much for your help.

You say that 'the RAW API cannot be used with xilkernel', i still not quite understand. we can use SBS(Standalone Board Support) functions under xilkernel, so why can't we write a application of lwip just use SBS? and the udp program in polling mode work well with xilkernel.

And sorry for the noise, i'm know few about the lwip's mechanism.

Ye Wu




On 10/19/06, Sathya Thammanur <address@hidden > wrote:
Hi Ye Wu,
As the current implementation stands, the RAW API cannot be used with xilkernel. The Sockets API is what is supported with xilkernel. Hence, the code written above will not work. The RAW API adapter has been optimized and hence will offer the best performance that you are looking for. The Sockets API is not optimized and hence the data rates seen is very much expected. As it stands today, you can choose to use the RAW API and go for the performance or you can work with Sockets API for ease of use of programming. You will need to make the choice based on your requirements.

Sathya



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


Attachment: tcp_echo_raw.zip
Description: Zip archive


reply via email to

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