lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #44805] sendmsg implementation to support scatter/gath


From: Joel Cunningham
Subject: [lwip-devel] [bug #44805] sendmsg implementation to support scatter/gather IO
Date: Tue, 28 Apr 2015 13:46:43 +0000
User-agent: 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.

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/uio.h.html
http://pubs.opengroup.org/onlinepubs/007908799/xns/syssocket.h.html

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
not.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?44805>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]