31 #define USERNAME "user@example.com" 32 #define PASSWORD "123qwerty" 33 #define RECIPIENT "<1507-recipient@example.com>" 34 #define MAILFROM "<1507-realuser@example.com>" 36 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 52 int still_running = 1;
84 while(still_running) {
104 if(curl_timeo >= 0) {
105 timeout.
tv_sec = curl_timeo / 1000;
109 timeout.
tv_usec = (curl_timeo % 1000) * 1000;
121 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
124 fprintf(stderr,
"ABORTING TEST, since it seems " 125 "that it would have run forever.\n");
CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *exc_fd_set, int *max_fd)
long tutil_tvdiff(struct timeval newer, struct timeval older)
CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle, long *milliseconds)
#define multi_add_handle(A, B)
UNITTEST_START char * ptr
#define curl_easy_setopt(handle, option, value)
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
CURL_EXTERN struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
#define CURL_GLOBAL_DEFAULT
CURL_EXTERN void curl_easy_cleanup(CURL *curl)
#define MULTI_PERFORM_HANG_TIMEOUT
#define CURL_READFUNC_ABORT
CURL_EXTERN CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *curl_handle)
CURL_EXTERN CURLcode curl_global_init(long flags)
curl_global_init() globally initializes curl given a bitwise set of the different features of what to...
CURL_EXTERN void curl_global_cleanup(void)
curl_global_cleanup() globally cleanups curl, uses the value of "init_flags" to determine what needs ...
CURL_EXTERN void curl_slist_free_all(struct curl_slist *)
CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle)
struct timeval tutil_tvnow(void)