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,
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to