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

Function lwip_readv

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

Source from the content-addressed store, hash-verified

1277}
1278
1279ssize_t
1280lwip_readv(int s, const struct iovec *iov, int iovcnt)
1281{
1282 struct msghdr msg;
1283
1284 msg.msg_name = NULL;
1285 msg.msg_namelen = 0;
1286 /* Hack: we have to cast via number to cast from 'const' pointer to non-const.
1287 Blame the opengroup standard for this inconsistency. */
1288 msg.msg_iov = LWIP_CONST_CAST(struct iovec *, iov);
1289 msg.msg_iovlen = iovcnt;
1290 msg.msg_control = NULL;
1291 msg.msg_controllen = 0;
1292 msg.msg_flags = 0;
1293 return lwip_recvmsg(s, &msg, 0);
1294}
1295
1296ssize_t
1297lwip_recv(int s, void *mem, size_t len, int flags)

Callers

nothing calls this directly

Calls 1

lwip_recvmsgFunction · 0.85

Tested by

no test coverage detected