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 14:06:39 +0100

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?)

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

Thanks
Oscar



On Thu, Mar 4, 2010 at 1:56 PM, Kieran Mansley <address@hidden> wrote:
On Thu, 2010-03-04 at 13:47 +0100, Oscar F wrote:
> 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)

In theory, yes, but you will need suitably large numbers of buffers and
so on, and the call could block for some time while waiting to send it
all.  If you can give details of the error that might help tell us what
your problem is.  lwIP should try to turn a big write like that into
many smaller writes (each less than 65535 bytes).

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]