Planeshift
Classes | Defines | Typedefs | Enumerations | Functions

multi.h File Reference

#include "curl.h"

Go to the source code of this file.

Classes

struct  CURLMsg

Defines

#define CINIT(name, type, number)   CURLMOPT_name = type + number
#define CURL_CSELECT_ERR   0x04
#define CURL_CSELECT_IN   0x01
#define CURL_CSELECT_OUT   0x02
#define curl_multi_socket(x, y, z)   curl_multi_socket_action(x,y,0,z)
#define CURL_POLL_IN   1
#define CURL_POLL_INOUT   3
#define CURL_POLL_NONE   0
#define CURL_POLL_OUT   2
#define CURL_POLL_REMOVE   4
#define CURL_SOCKET_TIMEOUT   CURL_SOCKET_BAD
#define CURLM_CALL_MULTI_SOCKET   CURLM_CALL_MULTI_PERFORM
#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT
#define LONG   CURLOPTTYPE_LONG
#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT
#define OFF_T   CURLOPTTYPE_OFF_T

Typedefs

typedef int(* curl_multi_timer_callback )(CURLM *multi, long timeout_ms, void *userp)
typedef int(* curl_socket_callback )(CURL *easy, curl_socket_t s, int what, void *userp, void *socketp)
typedef void CURLM
typedef struct CURLMsg CURLMsg

Enumerations

enum  CURLMcode {
  CURLM_CALL_MULTI_PERFORM = -1, CURLM_OK, CURLM_BAD_HANDLE, CURLM_BAD_EASY_HANDLE,
  CURLM_OUT_OF_MEMORY, CURLM_INTERNAL_ERROR, CURLM_BAD_SOCKET, CURLM_UNKNOWN_OPTION,
  CURLM_LAST
}
enum  CURLMoption {
  CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1), CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1), CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1), CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1),
  CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1), CINIT = (SOCKETFUNCTION, FUNCTIONPOINT, 1), CURLMOPT_LASTENTRY
}
enum  CURLMSG { CURLMSG_NONE, CURLMSG_DONE, CURLMSG_LAST }

Functions

CURL_EXTERN CURLMcode curl_multi_add_handle (CURLM *multi_handle, CURL *curl_handle)
CURL_EXTERN CURLMcode curl_multi_assign (CURLM *multi_handle, curl_socket_t sockfd, void *sockp)
CURL_EXTERN CURLMcode curl_multi_cleanup (CURLM *multi_handle)
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)
CURL_EXTERN CURLMsgcurl_multi_info_read (CURLM *multi_handle, int *msgs_in_queue)
CURL_EXTERN CURLMcurl_multi_init (void)
CURL_EXTERN CURLMcode curl_multi_perform (CURLM *multi_handle, int *running_handles)
CURL_EXTERN CURLMcode curl_multi_remove_handle (CURLM *multi_handle, CURL *curl_handle)
CURL_EXTERN CURLMcode curl_multi_setopt (CURLM *multi_handle, CURLMoption option,...)
CURL_EXTERN CURLMcode curl_multi_socket (CURLM *multi_handle, curl_socket_t s, int *running_handles)
CURL_EXTERN CURLMcode curl_multi_socket_action (CURLM *multi_handle, curl_socket_t s, int ev_bitmask, int *running_handles)
CURL_EXTERN CURLMcode curl_multi_socket_all (CURLM *multi_handle, int *running_handles)
CURL_EXTERN const char * curl_multi_strerror (CURLMcode)
CURL_EXTERN CURLMcode curl_multi_timeout (CURLM *multi_handle, long *milliseconds)

Define Documentation

#define CINIT (   name,
  type,
  number 
)    CURLMOPT_name = type + number

Definition at line 293 of file multi.h.

#define CURL_CSELECT_ERR   0x04

Definition at line 229 of file multi.h.

#define CURL_CSELECT_IN   0x01

Definition at line 227 of file multi.h.

#define CURL_CSELECT_OUT   0x02

Definition at line 228 of file multi.h.

#define curl_multi_socket (   x,
  y,
 
)    curl_multi_socket_action(x,y,0,z)

Definition at line 268 of file multi.h.

#define CURL_POLL_IN   1

Definition at line 220 of file multi.h.

#define CURL_POLL_INOUT   3

Definition at line 222 of file multi.h.

#define CURL_POLL_NONE   0

Definition at line 219 of file multi.h.

#define CURL_POLL_OUT   2

Definition at line 221 of file multi.h.

#define CURL_POLL_REMOVE   4

Definition at line 223 of file multi.h.

#define CURL_SOCKET_TIMEOUT   CURL_SOCKET_BAD

Definition at line 225 of file multi.h.

#define CURLM_CALL_MULTI_SOCKET   CURLM_CALL_MULTI_PERFORM

Definition at line 74 of file multi.h.

#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT

Definition at line 291 of file multi.h.

#define LONG   CURLOPTTYPE_LONG

Definition at line 289 of file multi.h.

#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT

Definition at line 290 of file multi.h.

#define OFF_T   CURLOPTTYPE_OFF_T

Definition at line 292 of file multi.h.


Typedef Documentation

typedef int(* curl_multi_timer_callback)(CURLM *multi,long timeout_ms,void *userp)

Definition at line 248 of file multi.h.

typedef int(* curl_socket_callback)(CURL *easy,curl_socket_t s,int what,void *userp,void *socketp)

Definition at line 231 of file multi.h.

typedef void CURLM

Definition at line 56 of file multi.h.

typedef struct CURLMsg CURLMsg

Definition at line 91 of file multi.h.


Enumeration Type Documentation

enum CURLMcode
Enumerator:
CURLM_CALL_MULTI_PERFORM 
CURLM_OK 
CURLM_BAD_HANDLE 
CURLM_BAD_EASY_HANDLE 
CURLM_OUT_OF_MEMORY 
CURLM_INTERNAL_ERROR 
CURLM_BAD_SOCKET 
CURLM_UNKNOWN_OPTION 
CURLM_LAST 

Definition at line 58 of file multi.h.

Enumerator:
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CURLMOPT_LASTENTRY 

Definition at line 296 of file multi.h.

enum CURLMSG
Enumerator:
CURLMSG_NONE 
CURLMSG_DONE 
CURLMSG_LAST 

Definition at line 76 of file multi.h.


Function Documentation

CURL_EXTERN CURLMcode curl_multi_add_handle ( CURLM multi_handle,
CURL curl_handle 
)
CURL_EXTERN CURLMcode curl_multi_assign ( CURLM multi_handle,
curl_socket_t  sockfd,
void *  sockp 
)
CURL_EXTERN CURLMcode curl_multi_cleanup ( CURLM multi_handle)
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 
)
CURL_EXTERN CURLMsg* curl_multi_info_read ( CURLM multi_handle,
int msgs_in_queue 
)
CURL_EXTERN CURLM* curl_multi_init ( void  )
CURL_EXTERN CURLMcode curl_multi_perform ( CURLM multi_handle,
int running_handles 
)
CURL_EXTERN CURLMcode curl_multi_remove_handle ( CURLM multi_handle,
CURL curl_handle 
)
CURL_EXTERN CURLMcode curl_multi_setopt ( CURLM multi_handle,
CURLMoption  option,
  ... 
)
CURL_EXTERN CURLMcode curl_multi_socket ( CURLM multi_handle,
curl_socket_t  s,
int running_handles 
)
CURL_EXTERN CURLMcode curl_multi_socket_action ( CURLM multi_handle,
curl_socket_t  s,
int  ev_bitmask,
int running_handles 
)
CURL_EXTERN CURLMcode curl_multi_socket_all ( CURLM multi_handle,
int running_handles 
)
CURL_EXTERN const char* curl_multi_strerror ( CURLMcode  )
CURL_EXTERN CURLMcode curl_multi_timeout ( CURLM multi_handle,
long *  milliseconds 
)