When writing a porotocol based on UDP/IP, a header is needed. This cause a
duplicate copy
of the data :
...
(user code)
sendBuffer (struct prot-address addr, void* pnt, int length);
My code :
struct sendDataType sendData;
memcpy (*sendData.data, pnt, length);
sendData.header = bla bla;
send
Look for scatter/gather buffering.
In particular, see: man sendmsg and the declarations of struct msghdr,
struct iovec.
On Tue, 18 Jun 2002, Iftach Hyams wrote:
> When writing a porotocol based on UDP/IP, a header is needed. This cause a
> duplicate copy
> of the data :
> ...
> (user code)
> s
>> Look for scatter/gather buffering.
>> In particular, see: man sendmsg and the declarations of
>> struct msghdr,
>> struct iovec.
Thank you.
This is the solution I need. My code is running on Linux, VxWorks, Windows
and now Solaris. Probably Windows is missing this services, but who care -
a