From what I know, you don't need a //netbuf// to prepare the data to be sent. You can pass a "normal" buffer to netconn_write along with the flag NETCONN_COPY to send your data.

Regards
Ueli

Quoting [email protected]:

I want to send a TCP/IP message with netconn_write. Before that I need to prepare the data I have to send.

For that reason I want to allocate a netbuf with the maximum block size, because I don't know the exact size of the send data. How can I do that? Is there an example (allocate netbuf, send, free buffer)?

Thanks a lot for ideas.

Best regards.
Markus

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to