32 #include <sys/types.h>
37 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
41 #ifdef HAVE_SYS_SOCKET_H
42 #include <sys/socket.h>
44 #include <netinet/in.h>
50 #ifdef HAVE_ARPA_INET_H
51 #include <arpa/inet.h>
56 #include <sys/ioctl.h>
59 #ifdef HAVE_SYS_PARAM_H
60 #include <sys/param.h>
63 #ifdef HAVE_SYS_SELECT_H
64 #include <sys/select.h>
79 #define _MPRINTF_REPLACE
86 char *database =
NULL;
87 char *strategy =
NULL;
105 word = strchr(path,
':');
108 database = strchr(word,
':');
110 *database++ = (char)0;
111 strategy = strchr(database,
':');
113 *strategy++ = (char)0;
114 nthdef = strchr(strategy,
':');
122 if ((word ==
NULL) || (*word == (char)0)) {
123 failf(data,
"lookup word is missing");
125 if ((database ==
NULL) || (*database == (
char)0)) {
126 database = (
char *)
"!";
128 if ((strategy ==
NULL) || (*strategy == (char)0)) {
129 strategy = (
char *)
".";
145 failf(data,
"Failed sending DICT request");
156 word = strchr(path,
':');
159 database = strchr(word,
':');
161 *database++ = (char)0;
162 nthdef = strchr(database,
':');
169 if ((word ==
NULL) || (*word == (char)0)) {
170 failf(data,
"lookup word is missing");
172 if ((database ==
NULL) || (*database == (
char)0)) {
173 database = (
char *)
"!";
185 failf(data,
"Failed sending DICT request");
196 ppath = strchr(path,
'/');
201 for (i = 0; ppath[
i]; i++) {
210 failf(data,
"Failed sending DICT request");
CURLcode Curl_dict(struct connectdata *conn)
#define strnequal(a, b, c)
GLsizei GLsizei GLenum GLenum const GLvoid * data
CURLcode Curl_Transfer(struct connectdata *c_conn, int sockindex, curl_off_t size, bool getheader, curl_off_t *bytecountp, int writesockindex, curl_off_t *writecountp)
struct SessionHandle * data
CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *conn, const char *fmt,...)