Lines Matching defs:sock
1049 static int send_message(int sock, const struct msg *msg)
1055 return send(sock, msg, sizeof(*msg), 0);
1058 static int recv_message(int sock, struct msg *msg)
1064 ret = recv(sock, msg, sizeof(*msg), 0);
1437 static void worker_main_send_log(int sock, char *log_buf, size_t log_cnt)
1460 assert(send_message(sock, &msg_log) >= 0);
1475 static int worker_main_send_subtests(int sock, struct test_state *state)
1501 if (send_message(sock, &msg) < 0) {
1509 worker_main_send_log(sock, subtest_state->log_buf, subtest_state->log_cnt);
1522 static int worker_main(int sock)
1530 if (recv_message(sock, &msg) < 0)
1566 if (send_message(sock, &msg) < 0) {
1573 worker_main_send_log(sock, state->log_buf, state->log_cnt);
1582 if (worker_main_send_subtests(sock, state))