Searched refs:NUM_SOCKETPAIRS (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/samples/net/sockets/socketpair/src/ |
D | main.c | 19 #define NUM_SOCKETPAIRS 3 macro 36 K_THREAD_STACK_ARRAY_DEFINE(stack, NUM_SOCKETPAIRS, STACK_SIZE); 227 struct context ctx[NUM_SOCKETPAIRS] = {}; in main() 228 struct pollfd fds[NUM_SOCKETPAIRS] = {}; in main() 231 res = setup(ctx, NUM_SOCKETPAIRS); in main() 236 for (size_t n_events = NUM_SOCKETPAIRS * NUM_REPITITIONS; n_events > 0; n_events -= res) { in main() 238 setup_poll(ctx, fds, NUM_SOCKETPAIRS); in main() 239 res = poll(fds, NUM_SOCKETPAIRS, -1); in main() 245 res = handle_poll_events(ctx, fds, NUM_SOCKETPAIRS, res); in main() 255 teardown(ctx, NUM_SOCKETPAIRS); in main()
|