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