32 #include <sys/types.h>
39 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
43 #ifdef HAVE_SYS_SOCKET_H
44 #include <sys/socket.h>
46 #include <netinet/in.h>
52 #ifdef HAVE_ARPA_INET_H
53 #include <arpa/inet.h>
58 #include <sys/ioctl.h>
61 #ifdef HAVE_SYS_PARAM_H
62 #include <sys/param.h>
65 #ifdef HAVE_SYS_SELECT_H
66 #include <sys/select.h>
80 #define _MPRINTF_REPLACE
90 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
91 static void win32_cleanup(
void)
98 WORD wVersionRequested;
103 wVersionRequested = MAKEWORD(2, 0);
105 wVersionRequested = MAKEWORD(1, 1);
108 err = WSAStartup(wVersionRequested, &wsaData);
121 if (
LOBYTE( wsaData.wVersion ) !=
LOBYTE(wVersionRequested) ||
122 HIBYTE( wsaData.wVersion ) !=
HIBYTE(wVersionRequested) ) {
135 static void win32_cleanup(
void) { }
141 static long init_flags = 0;
222 void *param_obj =
NULL;
238 param_long = va_arg(arg,
long);
243 param_obj = va_arg(arg,
void *);
248 param_func = va_arg(arg,
func_T );
306 paramp = va_arg(arg,
void *);
struct CookieInfo * cookies
struct connectdata ** connects
CURLcode Curl_open(struct SessionHandle **curl)
CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,...)
CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info,...)
curl_hash * Curl_hash_alloc(int slots, curl_hash_dtor dtor)
void curl_easy_cleanup(CURL *curl)
struct DynamicStatic change
CURLcode curl_global_init(long flags)
Globally initializes cURL given a bitwise set of the different features to initialize.
void Curl_SSL_cleanup(void)
#define CURLOPTTYPE_FUNCTIONPOINT
CURL * curl_easy_init(void)
CURL * curl_easy_duphandle(CURL *incurl)
#define Curl_global_host_cache_use(__p)
void Curl_global_host_cache_dtor(void)
CURLcode curl_easy_setopt(CURL *curl, CURLoption tag,...)
curl_hash * Curl_global_host_cache_get(void)
GLsizei GLsizei GLenum GLenum const GLvoid * data
#define CURLOPTTYPE_OBJECTPOINT
#define CURL_GLOBAL_DEFAULT
void Curl_freednsinfo(void *freethis)
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
struct Curl_share * share
#define CURLOPTTYPE_OFF_T
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info,...)
void Curl_hash_destroy(curl_hash *h)
#define CURL_GLOBAL_WIN32
CURLcode Curl_close(struct SessionHandle *data)
static WindowRef ValidModeCallbackProc inCallback OSStatus err
CURLcode curl_easy_perform(CURL *curl)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
CURLcode Curl_perform(struct SessionHandle *data)
struct CookieInfo * Curl_cookie_init(struct SessionHandle *data, char *file, struct CookieInfo *inc, bool newsession)