Searched refs:total_written (Results 1 – 2 of 2) sorted by relevance
34 size_t total_written = 0; in WriteAll() local36 while ((written = fd->Write((void*)&(buf[total_written]), size - total_written)) > 0) { in WriteAll()41 total_written += written; in WriteAll()42 if (total_written == size) { in WriteAll()46 return total_written; in WriteAll()
57 ssize_t total_written{}; in SendAll() local58 while (total_written < static_cast<ssize_t>(msg.size())) { in SendAll()62 auto just_written = sock->Send(msg.c_str() + total_written, in SendAll()63 msg.size() - total_written, MSG_NOSIGNAL); in SendAll()67 total_written += just_written; in SendAll()