| 469 | } |
| 470 | |
| 471 | struct TPacketsCountAdder { |
| 472 | size_t operator()(const size_t base, const TMMsgHdr& next) const { |
| 473 | return base + (size_t)next.msg_hdr.msg_iovlen; |
| 474 | } |
| 475 | }; |
| 476 | |
| 477 | // Flushes packet until first error. |
| 478 | // sentPackets is always updated, failedPacket is only set on non-SEND_BUFFER_OVERFLOW error. |