lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] size of packet


From: Kieran Mansley
Subject: Re: [lwip-users] size of packet
Date: Thu, 04 Mar 2010 14:23:27 +0000

On Thu, 2010-03-04 at 14:06 +0100, Oscar F wrote:
> thanks again, when i test this function i will tell us the error.
> 
> another question if i divided all block in several, the other PC need
> to wait for several packet too or the PC can wait the maximmun size?
> 
> Example:
>  is the same for the receiver PC, this form to send the all packet
>     lwip_send(int s, const, void *data, 29Mbyte, unsigned int flags)
> than this other 
>  lwip_send(int s, const, void *data, 15Mbyte, unsigned int flags)
>  lwip_send(int s, const, void *data, 14Mbyte, unsigned int flags)
> (is this transparent for the PC?)

Yes, the size of the sends are entirely transparent to the receiver.   

> The receiver always will be waiting for the maximmun size 29Mbytes

Note that it will need to cope with lwip_recv() returning before all
29Mbytes are received.  lwIP sockets API (like all standard sockets
APIs) will deliver it in smaller chunks.  If you want it all in one
buffer, just loop around recv() and adjust the pointer passed in by the
amount you've got so far.

Kieran





reply via email to

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