#include "setup.h"#include <string.h>#include <errno.h>#include "urldata.h"#include "sendf.h"#include "hostip.h"#include "hash.h"#include "share.h"#include "strerror.h"#include "url.h"#include "inet_pton.h"#include <curl/mprintf.h>#include "memory.h"#include "memdebug.h"Go to the source code of this file.
Defines | |
| #define | _MPRINTF_REPLACE |
Functions | |
| bool | Curl_ipvalid (struct SessionHandle *data) |
| Curl_addrinfo * | Curl_getaddrinfo (struct connectdata *conn, const char *hostname, int port, int *waitp) |
| Curl_addrinfo * | Curl_he2ai (const struct hostent *he, int port) |
| Curl_addrinfo* Curl_getaddrinfo | ( | struct connectdata * | conn, | |
| const char * | hostname, | |||
| int | port, | |||
| int * | waitp | |||
| ) |
Definition at line 119 of file hostip4.c.
References calloc, Curl_he2ai(), CURL_HOSTENT_SIZE, Curl_inet_pton(), Curl_ip2addr(), connectdata::data, free, simple_client::h, in_addr_t, infof, NULL, and SOCKERRNO.
Referenced by Curl_resolv().
| Curl_addrinfo* Curl_he2ai | ( | const struct hostent * | he, | |
| int | port | |||
| ) |
Definition at line 344 of file hostip4.c.
References Curl_addrinfo::ai_addr, Curl_addrinfo::ai_addrlen, Curl_addrinfo::ai_canonname, Curl_addrinfo::ai_family, Curl_addrinfo::ai_next, Curl_addrinfo::ai_socktype, calloc, NULL, and strdup.
Referenced by Curl_addrinfo_copy(), Curl_getaddrinfo(), and Curl_ip2addr().
| bool Curl_ipvalid | ( | struct SessionHandle * | data | ) |
Definition at line 92 of file hostip4.c.
References CURL_IPRESOLVE_V6, FALSE, UserDefined::ip_version, SessionHandle::set, and TRUE.
Referenced by Curl_resolv().
1.5.6