Lines Matching refs:sockets
45 #include "lwip/sockets.h"
65 /** sockets currently are built on netconns, each socket has one netconn */
125 /** The global array of available sockets */
126 static struct lwip_sock sockets[NUM_SOCKETS];
205 sock = &sockets[s];
228 if (!sockets[s].conn) {
231 return &sockets[s];
252 if (!sockets[i].conn) {
253 sockets[i].conn = newconn;
257 sockets[i].lastdata = NULL;
258 sockets[i].lastoffset = 0;
259 sockets[i].rcvevent = 0;
262 sockets[i].sendevent = (newconn->type == NETCONN_TCP ? (accepted != 0) : 1);
263 sockets[i].errevent = 0;
264 sockets[i].err = 0;
265 sockets[i].select_waiting = 0;
277 * @param is_tcp != 0 for TCP sockets, used to free lastdata
384 nsock = &sockets[newsock];
1010 * Go through the readset and writeset lists and see which socket of the sockets
1012 * the sockets enabled that had events.
1017 * @param readset_in: set of sockets to check for read events
1018 * @param writeset_in: set of sockets to check for write events
1019 * @param exceptset_in: set of sockets to check for error events
1020 * @param readset_out: set of sockets that had read events
1021 * @param writeset_out: set of sockets that had write events
1022 * @param exceptset_out: set os sockets that had error events
1023 * @return number of sockets that had events (read/write/exception) (>= 0)
1038 /* Go through each socket in each list to count number of sockets which
1105 /* Go through each socket in each list to count number of sockets which