[Top][All Lists]

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

Re: [lwip-users] Function send

From: address@hidden
Subject: Re: [lwip-users] Function send
Date: Fri, 23 Apr 2010 17:50:13 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv: Gecko/20100317 Thunderbird/3.0.4

Oscar F:
Hello everybody!!

I´m using EVK1100 with FreeRTOS and lwip, and i would like to know this question.

When i called the send function, is the packet sent to the ethernet line or this is queued and the return say me only that situation?
That depends on the API you are using (I'm assuming socket API here), on the protocol and your ethernet driver: for UDP, the packet is passed to your netif's linkoutput function before send() returns (unless the stack has to do an ARP request first). However, if you have a DMA-enabled MAC, this might mean the packet is queued for sending in the driver. For TCP, send() returning means the data is queued in stack-internal buffers only.


reply via email to

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