[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #6735] Provide new pbuf type: PBUF_RAM_NOCOPY
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #6735] Provide new pbuf type: PBUF_RAM_NOCOPY |
Date: |
Mon, 23 Apr 2007 10:35:36 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #2, task #6735 (project lwip):
Also, it would be usefule to have a function like tcp_write() that accepts
pre-filled pbufs. That way, an application can generate packet directly into
a pbuf. For protocols that send dynamic data, this could completely eliminate
copying. (together with a flag like 'copy' that indicates if the data should
be copied or put on the segment-queue directly (the pbuf may not be changed
by the application thereafter)).
We could provide a function tcp_pbuf_alloc() which takes care of the pbuf
length so that a pbuf is not longer than one segment and it has the right
type (PBUF_RAM_NOCOPY).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?6735>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/