Home
last modified time | relevance | path

Searched refs:NUM_SOCKETS (Results 1 – 13 of 13) sorted by relevance

/third_party/libuv/test/
Dtest-poll-close.c33 #define NUM_SOCKETS 64 macro
45 uv_os_sock_t sockets[NUM_SOCKETS]; in TEST_IMPL()
46 uv_poll_t poll_handles[NUM_SOCKETS]; in TEST_IMPL()
57 for (i = 0; i < NUM_SOCKETS; i++) { in TEST_IMPL()
63 for (i = 0; i < NUM_SOCKETS; i++) { in TEST_IMPL()
69 ASSERT(close_cb_called == NUM_SOCKETS); in TEST_IMPL()
/third_party/lwip/src/core/distributed_net/
Ddistributed_net.c50 static u8_t g_is_distributed_net_socket[NUM_SOCKETS] = {0};
73 if (index >= 0 && index < NUM_SOCKETS) { in set_distributed_net_socket()
83 if (index >= 0 && index < NUM_SOCKETS) { in reset_distributed_net_socket()
143 for (int i = 0; i < NUM_SOCKETS; ++i) { in disable_distributed_net()
Ddistributed_net_core.c47 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_connect()
87 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_close()
107 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_sendto()
148 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_sendmsg()
194 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_recvfrom()
/third_party/lwip/test/unit/api/
Dtest_sockets.c20 for (i = 0; i < NUM_SOCKETS; i++) { in test_sockets_get_used_count()
56 #ifndef NUM_SOCKETS
57 #define NUM_SOCKETS MEMP_NUM_NETCONN macro
77 int s2[NUM_SOCKETS]; in START_TEST()
84 for (i = 0; i < NUM_SOCKETS; i++) { in START_TEST()
100 for (i = 0; i < NUM_SOCKETS; i++) { in START_TEST()
/third_party/lwip/src/include/lwip/priv/
Dsockets_priv.h52 #define NUM_SOCKETS MEMP_NUM_NETCONN macro
/third_party/lwip/
D0018-exec-gazelle_init_sock-before-read-event.patch21 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW…
D0097-Mod-the-issue-that-2w-connection-unable-to-establish.patch52 if ((s < 0) || (s >= NUM_SOCKETS))
63 if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) {
D0073-lstack_lwip-external-api-start-with-do_lwip_-prefix.patch76 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW…
D0053-cleancode-improve-lwipopts.h-readability.patch138 static struct lwip_sock sockets[NUM_SOCKETS];
152 if ((s < 0) || (s >= NUM_SOCKETS))
209 for (i = 0; i < NUM_SOCKETS; ++i) {
228 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW…
D0057-same-node-gazellectl-a.patch48 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW…
D0002-adapt-lstack.patch630 static struct lwip_sock sockets[NUM_SOCKETS];
648 - if ((s < 0) || (s >= NUM_SOCKETS)) {
653 + if ((s < 0) || (s >= NUM_SOCKETS))
759 for (i = 0; i < NUM_SOCKETS; ++i) {
831 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW…
1490 + sockets_num = NUM_SOCKETS;
4162 #define NUM_SOCKETS MEMP_NUM_NETCONN
/third_party/python/Lib/test/
Dtest_selectors.py304 NUM_SOCKETS = 12
312 for i in range(NUM_SOCKETS):
351 self.assertEqual(bufs, [MSG] * NUM_SOCKETS)
/third_party/lwip/src/api/
Dsockets.c226 #define LWIP_SOCKET_MAX_MEMBERSHIPS NUM_SOCKETS
268 static struct lwip_sock sockets[NUM_SOCKETS];
422 if ((s < 0) || (s >= NUM_SOCKETS)) { in tryget_socket_unconn_nouse()
491 if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) { in get_socket()
516 for (i = 0; i < NUM_SOCKETS; ++i) { in alloc_socket()
669 …LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LW… in lwip_accept()