Lines Matching refs:sockets
32 static uv_udp_t sockets[1250]; variable
34 static uv_udp_t sockets[2500]; variable
36 static uv_udp_send_t reqs[ARRAY_SIZE(sockets)];
77 TEST_FILE_LIMIT(ARRAY_SIZE(sockets) + 32); in TEST_IMPL()
83 for (i = 0; i < ARRAY_SIZE(sockets); i++) { in TEST_IMPL()
84 ASSERT_OK(uv_udp_init(loop, &sockets[i])); in TEST_IMPL()
85 ASSERT_OK(uv_udp_bind(&sockets[i], in TEST_IMPL()
88 ASSERT_OK(uv_udp_recv_start(&sockets[i], alloc_cb, recv_cb)); in TEST_IMPL()
90 &sockets[i], in TEST_IMPL()
100 for (i = 0; i < ARRAY_SIZE(sockets); i++) in TEST_IMPL()
101 uv_close((uv_handle_t*) &sockets[i], close_cb); in TEST_IMPL()
107 ASSERT_EQ(ARRAY_SIZE(sockets), send_cb_called); in TEST_IMPL()
108 ASSERT_EQ(ARRAY_SIZE(sockets), close_cb_called); in TEST_IMPL()