Home | History | Annotate | Download | only in utils

Lines Matching refs:sock

23 	int sock;
139 int sock, eloop_sock_handler handler,
145 if (sock > eloop.max_sock)
146 new_max_sock = sock;
184 tmp[table->count].sock = sock;
201 int sock)
209 if (table->table[i].sock == sock)
254 fd = readers->table[i].sock;
270 fd = writers->table[i].sock;
296 fd = exceptions->table[i].sock;
327 pfd = find_pollfd(pollfds_map, table->table[i].sock,
335 table->table[i].handler(table->table[i].sock,
377 FD_SET(table->table[i].sock, fds);
391 if (FD_ISSET(table->table[i].sock, fds)) {
392 table->table[i].handler(table->table[i].sock,
410 "sock=%d eloop_data=%p user_data=%p "
412 table->table[i].sock,
419 wpa_trace_dump("eloop sock", &table->table[i]);
426 int eloop_register_read_sock(int sock, eloop_sock_handler handler,
429 return eloop_register_sock(sock, EVENT_TYPE_READ, handler,
434 void eloop_unregister_read_sock(int sock)
436 eloop_unregister_sock(sock, EVENT_TYPE_READ);
455 int eloop_register_sock(int sock, eloop_event_type type,
462 return eloop_sock_table_add_sock(table, sock, handler,
467 void eloop_unregister_sock(int sock, eloop_event_type type)
472 eloop_sock_table_remove_sock(table, sock);
834 void eloop_wait_for_read_sock(int sock)
839 if (sock < 0)
843 pfd.fd = sock;
850 if (sock < 0)
854 FD_SET(sock, &rfds);
855 select(sock + 1, &rfds, NULL, NULL, NULL);