MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / write_exact

Function write_exact

plugins/ipc/ipc.cpp:294–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static bool write_exact(int fd, const char *buf, ssize_t n)
295{
296 while (n > 0)
297 {
298 ssize_t w = write(fd, buf, n);
299 if (w <= 0)
300 {
301 return false;
302 }
303
304 n -= w;
305 buf += w;
306 }
307
308 return true;
309}
310
311bool wf::ipc::client_t::send_json(wf::json_t json)
312{

Callers 1

send_jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected