lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Data buffering before calling netcon_write


From: Krzysztof Wesołowski
Subject: [lwip-users] Data buffering before calling netcon_write
Date: Fri, 13 Jun 2014 22:05:12 +0200

Hello,

I am using code similar to std::ostream, writing to open TCP connection.

Without buffering (calling netconn_write for each small data chunk), performance was an issue, so i implemented simple buffer (over 1kB) to write data to buffer first, and when buffer is full call netconn_write.

I was considering if i can avoid this extra copy, by pre-allocating sth like pbuf - filling it and then passing to lwip stack, but it seems tcp connections only support copy based approach. 

Am i right or have I missed something?

Regards,
Krzysztof Wesołowski,

reply via email to

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