MCPcopy Create free account
hub / github.com/RsyncProject/rsync / drain_multiplex_messages

Function drain_multiplex_messages

io.c:1732–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730}
1731
1732static void drain_multiplex_messages(void)
1733{
1734 while (IN_MULTIPLEXED_AND_READY && iobuf.in.len) {
1735 if (iobuf.raw_input_ends_before) {
1736 size_t raw_len = iobuf.raw_input_ends_before - iobuf.in.pos;
1737 iobuf.raw_input_ends_before = 0;
1738 if (raw_len >= iobuf.in.len) {
1739 iobuf.in.len = 0;
1740 break;
1741 }
1742 iobuf.in.len -= raw_len;
1743 if ((iobuf.in.pos += raw_len) >= iobuf.in.size)
1744 iobuf.in.pos -= iobuf.in.size;
1745 }
1746 read_a_msg();
1747 }
1748}
1749
1750void wait_for_receiver(void)
1751{

Callers 1

perform_ioFunction · 0.85

Calls 1

read_a_msgFunction · 0.85

Tested by

no test coverage detected