MCPcopy Create free account
hub / github.com/antirez/ds4 / dist_write_frame_header

Function dist_write_frame_header

ds4_distributed.c:1130–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130static int dist_write_frame_header(int fd, uint32_t type, uint32_t bytes) {
1131 ds4_dist_frame_header h = {
1132 htonl(DS4_DIST_MAGIC),
1133 htonl(type),
1134 htonl(bytes)
1135 };
1136 return dist_write_full(fd, &h, sizeof(h));
1137}
1138
1139static int dist_read_frame_header(int fd, uint32_t *type, uint32_t *bytes, char *err, size_t errlen) {
1140 ds4_dist_frame_header h;

Callers 10

dist_send_errorFunction · 0.85
dist_send_helloFunction · 0.85
dist_send_work_resultFunction · 0.85
dist_send_snapshot_beginFunction · 0.85
dist_send_snapshot_doneFunction · 0.85
dist_send_work_frameFunction · 0.85

Calls 1

dist_write_fullFunction · 0.85

Tested by

no test coverage detected