Lines Matching defs:proto
30 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto)
56 rcv_fd[i] = socket(family, proto, 0);
68 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10))
107 static void send_from_node(int node_id, int family, int proto)
144 fd = socket(family, proto, 0);
161 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto)
171 if (proto == SOCK_STREAM) {
194 static void test(int *rcv_fd, int len, int family, int proto)
199 build_rcv_group(rcv_fd, len, family, proto);
216 send_from_node(node, family, proto);
217 receive_on_node(rcv_fd, len, epfd, node, proto);
224 send_from_node(node, family, proto);
225 receive_on_node(rcv_fd, len, epfd, node, proto);