#include <sys/types.h>
#include "rutil/ResipAssert.h"
#include <sys/socket.h>
#include <sys/uio.h>
#include <netinet/in.h>
#include "ares_nameser.h"
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include <errno.h>
#include "ares.h"
#include "ares_dns.h"
#include "ares_private.h"
#include "ares_local.h"
Go to the source code of this file.
|
| static int | getErrno () |
| |
| static int | would_block (void) |
| |
| static void | write_tcp_data_core (ares_channel channel, int server_idx, time_t now) |
| |
| static void | write_tcp_data (ares_channel channel, fd_set *write_fds, time_t now) |
| |
| static void | read_tcp_data (ares_channel channel, int server_idx, fd_set *read_fds, time_t now) |
| |
| static void | read_udp_packets (ares_channel channel, int server_idx, fd_set *read_fds, time_t now) |
| |
| static void | process_timeouts (ares_channel channel, time_t now) |
| |
| static void | process_answer (ares_channel channel, unsigned char *abuf, int alen, int whichserver, int tcp, time_t now) |
| |
| static void | handle_error (ares_channel channel, int whichserver, time_t now) |
| |
| static void | next_server (ares_channel channel, struct query *query, time_t now) |
| |
| static int | next_server_new_network (ares_channel channel, struct query *query, time_t now) |
| |
| static int | open_tcp_socket (ares_channel channel, struct server_state *server) |
| |
| static int | open_udp_socket (ares_channel channel, struct server_state *server) |
| |
| static int | same_questions (const unsigned char *qbuf, int qlen, const unsigned char *abuf, int alen) |
| |
| static void | end_query (ares_channel channel, struct query *query, int status, unsigned char *abuf, int alen) |
| |
| static int | make_socket_non_blocking (int s) |
| |
| void | ares_process (ares_channel channel, fd_set *read_fds, fd_set *write_fds) |
| |
| void | ares_process_poll (ares_channel channel, int server_idx, int rdFd, int wrFd, time_t now) |
| |
| void | ares__send_query (ares_channel channel, struct query *query, time_t now) |
| |
| static int | connect_udp_ipv4 (int s, ares_channel channel, struct server_state *server) |
| |
| void | ares__kill_socket (int s) |
| |
| void | ares_process_set_poll_cb (ares_channel channel, ares_poll_cb_func *cbf, void *cbd) |
| |
◆ PORTABLE_INPROGRESS_ERR
◆ ares__kill_socket()
◆ ares__send_query()
◆ ares_process()
◆ ares_process_poll()
◆ ares_process_set_poll_cb()
◆ connect_udp_ipv4()
◆ end_query()
◆ getErrno()
◆ handle_error()
◆ make_socket_non_blocking()
| int make_socket_non_blocking |
( |
int |
s | ) |
|
|
static |
◆ next_server()
◆ next_server_new_network()
◆ open_tcp_socket()
◆ open_udp_socket()
◆ process_answer()
◆ process_timeouts()
◆ read_tcp_data()
◆ read_udp_packets()
◆ same_questions()
◆ would_block()
◆ write_tcp_data()
◆ write_tcp_data_core()