Lines Matching defs:proto
34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto)
60 rcv_fd[i] = socket(family, proto, 0);
72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10))
94 static void send_from_cpu(int cpu_id, int family, int proto)
134 fd = socket(family, proto, 0);
151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto)
161 if (proto == SOCK_STREAM) {
184 static void test(int *rcv_fd, int len, int family, int proto)
189 build_rcv_group(rcv_fd, len, family, proto);
204 send_from_cpu(cpu, family, proto);
205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
210 send_from_cpu(cpu, family, proto);
211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
216 send_from_cpu(cpu, family, proto);
217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
222 send_from_cpu(cpu, family, proto);
223 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);