MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / lwip_writev

Function lwip_writev

components/net/lwip/lwip-2.1.2/src/api/sockets.c:1773–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1771}
1772
1773ssize_t
1774lwip_writev(int s, const struct iovec *iov, int iovcnt)
1775{
1776 struct msghdr msg;
1777
1778 msg.msg_name = NULL;
1779 msg.msg_namelen = 0;
1780 /* Hack: we have to cast via number to cast from 'const' pointer to non-const.
1781 Blame the opengroup standard for this inconsistency. */
1782 msg.msg_iov = LWIP_CONST_CAST(struct iovec *, iov);
1783 msg.msg_iovlen = iovcnt;
1784 msg.msg_control = NULL;
1785 msg.msg_controllen = 0;
1786 msg.msg_flags = 0;
1787 return lwip_sendmsg(s, &msg, 0);
1788}
1789
1790#if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL
1791/* Add select_cb to select_cb_list. */

Callers

nothing calls this directly

Calls 1

lwip_sendmsgFunction · 0.70

Tested by

no test coverage detected