wut  1.0.0-beta9
Wii U Toolchain
Data Structures | Macros | Typedefs | Enumerations | Functions
multi.h File Reference
#include "curl.h"

Go to the source code of this file.

Data Structures

struct  CURLMsg
 
union  CURLMsg.data
 

Macros

#define CURLM_CALL_MULTI_SOCKET   CURLM_CALL_MULTI_PERFORM
 
#define CURL_POLL_NONE   0
 
#define CURL_POLL_IN   1
 
#define CURL_POLL_OUT   2
 
#define CURL_POLL_INOUT   3
 
#define CURL_POLL_REMOVE   4
 
#define CURL_SOCKET_TIMEOUT   CURL_SOCKET_BAD
 
#define CURL_CSELECT_IN   0x01
 
#define CURL_CSELECT_OUT   0x02
 
#define CURL_CSELECT_ERR   0x04
 
#define curl_multi_socket(x, y, z)   curl_multi_socket_action(x,y,0,z)
 
#define CINIT(name, type, num)   CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num
 

Typedefs

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

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  CURLMSG {
  CURLMSG_NONE,
  CURLMSG_DONE,
  CURLMSG_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
}
 

Functions

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

Data Structure Documentation

◆ CURLMsg

struct CURLMsg

Definition at line 82 of file multi.h.

Data Fields
CURLMSG msg
CURL * easy_handle
union CURLMsg data

◆ CURLMsg.data

union CURLMsg.data

Definition at line 85 of file multi.h.

Data Fields
void * whatever
CURLcode result

Macro Definition Documentation

◆ CURLM_CALL_MULTI_SOCKET

#define CURLM_CALL_MULTI_SOCKET   CURLM_CALL_MULTI_PERFORM

Definition at line 73 of file multi.h.

◆ CURL_POLL_NONE

#define CURL_POLL_NONE   0

Definition at line 218 of file multi.h.

◆ CURL_POLL_IN

#define CURL_POLL_IN   1

Definition at line 219 of file multi.h.

◆ CURL_POLL_OUT

#define CURL_POLL_OUT   2

Definition at line 220 of file multi.h.

◆ CURL_POLL_INOUT

#define CURL_POLL_INOUT   3

Definition at line 221 of file multi.h.

◆ CURL_POLL_REMOVE

#define CURL_POLL_REMOVE   4

Definition at line 222 of file multi.h.

◆ CURL_SOCKET_TIMEOUT

#define CURL_SOCKET_TIMEOUT   CURL_SOCKET_BAD

Definition at line 224 of file multi.h.

◆ CURL_CSELECT_IN

#define CURL_CSELECT_IN   0x01

Definition at line 226 of file multi.h.

◆ CURL_CSELECT_OUT

#define CURL_CSELECT_OUT   0x02

Definition at line 227 of file multi.h.

◆ CURL_CSELECT_ERR

#define CURL_CSELECT_ERR   0x04

Definition at line 228 of file multi.h.

◆ curl_multi_socket

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

Definition at line 267 of file multi.h.

◆ CINIT

#define CINIT (   name,
  type,
  num 
)    CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num

Definition at line 285 of file multi.h.

Typedef Documentation

◆ CURLM

typedef void CURLM

Definition at line 55 of file multi.h.

◆ CURLMsg

typedef struct CURLMsg CURLMsg

Definition at line 90 of file multi.h.

◆ curl_socket_callback

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

Definition at line 230 of file multi.h.

◆ curl_multi_timer_callback

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

Definition at line 247 of file multi.h.

Enumeration Type Documentation

◆ CURLMcode

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 57 of file multi.h.

◆ CURLMSG

enum CURLMSG
Enumerator
CURLMSG_NONE 
CURLMSG_DONE 
CURLMSG_LAST 

Definition at line 75 of file multi.h.

◆ CURLMoption

Enumerator
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CURLMOPT_LASTENTRY 

Definition at line 295 of file multi.h.

Function Documentation

◆ curl_multi_init()

CURL_EXTERN CURLM* curl_multi_init ( void  )

◆ curl_multi_add_handle()

CURL_EXTERN CURLMcode curl_multi_add_handle ( CURLM multi_handle,
CURL curl_handle 
)

◆ curl_multi_remove_handle()

CURL_EXTERN CURLMcode curl_multi_remove_handle ( CURLM multi_handle,
CURL curl_handle 
)

◆ curl_multi_fdset()

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_multi_perform()

CURL_EXTERN CURLMcode curl_multi_perform ( CURLM multi_handle,
int *  running_handles 
)

◆ curl_multi_cleanup()

CURL_EXTERN CURLMcode curl_multi_cleanup ( CURLM multi_handle)

◆ curl_multi_info_read()

CURL_EXTERN CURLMsg* curl_multi_info_read ( CURLM multi_handle,
int *  msgs_in_queue 
)

◆ curl_multi_strerror()

const CURL_EXTERN char* curl_multi_strerror ( CURLMcode  )

◆ curl_multi_socket()

CURL_EXTERN CURLMcode curl_multi_socket ( CURLM multi_handle,
curl_socket_t  s,
int *  running_handles 
)

◆ curl_multi_socket_action()

CURL_EXTERN CURLMcode curl_multi_socket_action ( CURLM multi_handle,
curl_socket_t  s,
int  ev_bitmask,
int *  running_handles 
)

◆ curl_multi_socket_all()

CURL_EXTERN CURLMcode curl_multi_socket_all ( CURLM multi_handle,
int *  running_handles 
)

◆ curl_multi_timeout()

CURL_EXTERN CURLMcode curl_multi_timeout ( CURLM multi_handle,
long *  milliseconds 
)

◆ curl_multi_setopt()

CURL_EXTERN CURLMcode curl_multi_setopt ( CURLM multi_handle,
CURLMoption  option,
  ... 
)

◆ curl_multi_assign()

CURL_EXTERN CURLMcode curl_multi_assign ( CURLM multi_handle,
curl_socket_t  sockfd,
void *  sockp 
)