[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #44805] sendmsg implementation to support scatter/gath
[lwip-devel] [bug #44805] sendmsg implementation to support scatter/gather IO
Tue, 28 Apr 2015 13:46:43 +0000
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Follow-up Comment #4, bug #44805 (project lwip):
I did find some documentation in the function pbuf_alloc(). It mentions the
pbuf should be copied with pbuf_take() if it's being queued.
I did not ifdef msghdr because open group specification lists sys/socket.h as
where struct msghdr is defined. struct iovec is defined in sys/uio.h. I
included a define for struct iovec for systems that don't have a sys/uio.h.
If there are systems that define struct msghdr in other headers, maybe an
ifdef would be appropriate.
I can rebase the patchsets and add handling for LWIP_NETIF_TX_SINGLE_PBUF.
One final question I have is should we guard the sendmsg() implementation with
an LWIP_SENDMSG flag to allow reduced code size for systems that don't need
it? I don't have a good picture on what features are considered optional vs
Reply to this item at:
Message sent via/by Savannah