Lines Matching defs:sockets

44 #include "lwip/sockets.h"
267 /** The global array of available sockets */
268 static struct lwip_sock sockets[NUM_SOCKETS];
426 return &sockets[s];
519 if (!sockets[i].conn) {
521 if (sockets[i].fd_used) {
525 sockets[i].fd_used = 1;
526 sockets[i].fd_free_pending = 0;
528 sockets[i].conn = newconn;
532 sockets[i].lastdata.pbuf = NULL;
534 LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0);
535 sockets[i].rcvevent = 0;
538 sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
539 sockets[i].errevent = 0;
540 init_waitqueue_head(&sockets[i].wq);
552 * @param is_tcp != 0 for TCP sockets, used to free lastdata
600 * @param is_tcp != 0 for TCP sockets, used to free lastdata
670 nsock = &sockets[newsock - LWIP_SOCKET_OFFSET];
1778 /* netconn layer enables pktinfo by default, sockets default to off */
1809 done_socket(&sockets[i - LWIP_SOCKET_OFFSET]);
1891 * Go through the readset and writeset lists and see which socket of the sockets
1893 * the sockets enabled that had events.
1896 * @param readset_in set of sockets to check for read events
1897 * @param writeset_in set of sockets to check for write events
1898 * @param exceptset_in set of sockets to check for error events
1899 * @param readset_out set of sockets that had read events
1900 * @param writeset_out set of sockets that had write events
1901 * @param exceptset_out set os sockets that had error events
1902 * @return number of sockets that had events (read/write/exception) (>= 0)
1917 /* Go through each socket in each list to count number of sockets which
1972 /* Mark all of the set sockets in one of the three fdsets passed to select as used.
1973 * All sockets are marked (and later unmarked), whether they are open or not.
1974 * This is OK as lwip_selscan aborts select when non-open sockets are found.
1998 /* Mark all sockets passed to select as used to prevent them from being freed
2000 * Marked sockets are added to 'used_sockets' to mark them only once an be able
2012 /* Let go all sockets that were marked as used when starting select */
2063 /* Go through each socket in each list to count number of sockets which
2068 /* one of the sockets in one of the fd_sets was invalid */
2073 /* one or more sockets are set, no need to wait */
2355 /* Mark all sockets as used.
2357 * All sockets are marked (and later unmarked), whether they are open or not.
2358 * This is OK as lwip_pollscan aborts select when non-open sockets are found.
2374 /* Let go all sockets that were marked as used when starting poll */