doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Enumerations | Functions
multi.c File Reference
#include "setup.h"
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include "urldata.h"
#include "transfer.h"
#include "url.h"
#include "connect.h"
#include "progress.h"

Go to the source code of this file.

Classes

struct  Curl_message
 
struct  Curl_one_easy
 
struct  Curl_multi
 

Macros

#define CURL_MULTI_HANDLE   0x000bab1e
 
#define GOOD_MULTI_HANDLE(x)   ((x)&&(((struct Curl_multi *)x)->type == CURL_MULTI_HANDLE))
 
#define GOOD_EASY_HANDLE(x)   (x)
 

Enumerations

enum  CURLMstate {
  CURLM_STATE_INIT, CURLM_STATE_CONNECT, CURLM_STATE_WAITRESOLVE, CURLM_STATE_WAITCONNECT,
  CURLM_STATE_DO, CURLM_STATE_DO_MORE, CURLM_STATE_PERFORM, CURLM_STATE_DONE,
  CURLM_STATE_COMPLETED, CURLM_STATE_LAST
}
 

Functions

CURLMcurl_multi_init (void)
 
CURLMcode curl_multi_add_handle (CURLM *multi_handle, CURL *easy_handle)
 
CURLMcode curl_multi_remove_handle (CURLM *multi_handle, CURL *curl_handle)
 
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)
 
CURLMcode curl_multi_perform (CURLM *multi_handle, int *running_handles)
 
CURLMcode curl_multi_cleanup (CURLM *multi_handle)
 
CURLMsgcurl_multi_info_read (CURLM *multi_handle, int *msgs_in_queue)
 

Macro Definition Documentation

#define CURL_MULTI_HANDLE   0x000bab1e

Definition at line 91 of file multi.c.

#define GOOD_EASY_HANDLE (   x)    (x)

Definition at line 94 of file multi.c.

#define GOOD_MULTI_HANDLE (   x)    ((x)&&(((struct Curl_multi *)x)->type == CURL_MULTI_HANDLE))

Definition at line 93 of file multi.c.

Enumeration Type Documentation

enum CURLMstate
Enumerator
CURLM_STATE_INIT 
CURLM_STATE_CONNECT 
CURLM_STATE_WAITRESOLVE 
CURLM_STATE_WAITCONNECT 
CURLM_STATE_DO 
CURLM_STATE_DO_MORE 
CURLM_STATE_PERFORM 
CURLM_STATE_DONE 
CURLM_STATE_COMPLETED 
CURLM_STATE_LAST 

Definition at line 57 of file multi.c.

Function Documentation

CURLMcode curl_multi_add_handle ( CURLM multi_handle,
CURL easy_handle 
)

Definition at line 134 of file multi.c.

CURLMcode curl_multi_cleanup ( CURLM multi_handle)

Definition at line 583 of file multi.c.

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 
)

Definition at line 231 of file multi.c.

CURLMsg* curl_multi_info_read ( CURLM multi_handle,
int msgs_in_queue 
)

Definition at line 614 of file multi.c.

CURLM* curl_multi_init ( void  )

Definition at line 114 of file multi.c.

CURLMcode curl_multi_perform ( CURLM multi_handle,
int running_handles 
)

Definition at line 306 of file multi.c.

CURLMcode curl_multi_remove_handle ( CURLM multi_handle,
CURL curl_handle 
)

Definition at line 182 of file multi.c.