MCPcopy Create free account
hub / github.com/axboe/liburing / recv_done_res

Function recv_done_res

examples/proxy.c:1149–1156  ·  view source on GitHub ↗

* For non recvmsg && multishot, a zero receive marks the end. For recvmsg * with multishot, we always get the header regardless. Hence a "zero receive" * is the size of the header. */

Source from the content-addressed store, hash-verified

1147 * is the size of the header.
1148 */
1149static int recv_done_res(int res)
1150{
1151 if (!res)
1152 return 1;
1153 if (rcv_msg && recv_mshot && res == sizeof(struct io_uring_recvmsg_out))
1154 return 1;
1155 return 0;
1156}
1157
1158static int recv_inc(struct conn *c, struct conn_dir *cd, int *bid,
1159 struct io_uring_cqe *cqe)

Callers 1

__handle_recvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected