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: Oscar F
Subject: Re: [lwip-users] size of packet
Date: Thu, 4 Mar 2010 13:47:10 +0100

Ok thanks,
i have a big buffer, and when it´s completed i have to send to the other PC.

Can i use this:
 send (..., 29Mbytes,...);  exactly will be  lwip_send(int s, const void *data, 29Mbyte, unsigned int flags)

the last time that i have tested this function the application break.

Can i use this call in my code? the size of int is 32 bits in AVR32

thanks
Oscar


On Thu, Mar 4, 2010 at 1:36 PM, Kieran Mansley <address@hidden> wrote:
On Thu, 2010-03-04 at 13:22 +0100, Oscar F wrote:
> Thank you,
>
> for example if i want to send a size about 1Mbyte,
> i am going to use this function send (..., 1Mbyte,...); with this
> size, but
> this packet then will be divided in several packet won´t be?

Yes.

> My aim is to send a big packet, about 29Mbytes

Depending on your network the maximum packet size is likely to be around
1500 bytes or less.  Some will support up to 9000 bytes, and the
theoretical maximum for IPv4 is 65535 bytes.  Splitting sends into small
packets is done for good reasons, so a 29 MB packet is not a good idea.

If you mean you want a 29 MB send (rather than packet) that should be
fine.  In recent lwIP at least the upper limit on sends is whatever
size_t is defined to on your platform, although I'm not sure this will
have been well tested for size_t > 32 bits.

You will also need to have a suitably large send queue, and sufficient
buffers to store all that data of course.

Kieran



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



--
"En la vida hay tres cosas que nunca dan marcha atras, la palabra pronunciada, la flecha lanzada y la oportunidad perdida"

reply via email to

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