lwip-devel
[Top][All Lists]
Advanced

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

RE: RE: [lwip-devel] netconn/socket: converting len argument to size_t


From: bill
Subject: RE: RE: [lwip-devel] netconn/socket: converting len argument to size_t
Date: Fri, 13 Feb 2009 10:50:19 -0500

>-----Original Message-----
>No, since tcp_pcb->snd_buf is an u16_t (like Jacob wrote in his last
>mail), 64k-1 is the limit. I was only speaking of *if* that was
>possible, one needed to change tcp_write, but without that, changing
>tcp_write to accept an u32_t is not necessary.
>
>Simon

Why not simply make it unsigned so that it follows the native processor
register size for the given platform? Isn't a system really constrained on
memory more likely to have sizeof(unsigned) == sizeof(u16_t) anyway?

Is it really any more efficient to call tcp_write once with a large block of
data versus letting the stack call back to tcp_sent a couple or few times?

Bill





reply via email to

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