Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/curl
File: multi.h
#ifndef __CURL_MULTI_H
[0] Fix | Delete
#define __CURL_MULTI_H
[1] Fix | Delete
/***************************************************************************
[2] Fix | Delete
* _ _ ____ _
[3] Fix | Delete
* Project ___| | | | _ \| |
[4] Fix | Delete
* / __| | | | |_) | |
[5] Fix | Delete
* | (__| |_| | _ <| |___
[6] Fix | Delete
* \___|\___/|_| \_\_____|
[7] Fix | Delete
*
[8] Fix | Delete
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
[9] Fix | Delete
*
[10] Fix | Delete
* This software is licensed as described in the file COPYING, which
[11] Fix | Delete
* you should have received as part of this distribution. The terms
[12] Fix | Delete
* are also available at https://curl.haxx.se/docs/copyright.html.
[13] Fix | Delete
*
[14] Fix | Delete
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
[15] Fix | Delete
* copies of the Software, and permit persons to whom the Software is
[16] Fix | Delete
* furnished to do so, under the terms of the COPYING file.
[17] Fix | Delete
*
[18] Fix | Delete
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
[19] Fix | Delete
* KIND, either express or implied.
[20] Fix | Delete
*
[21] Fix | Delete
***************************************************************************/
[22] Fix | Delete
/*
[23] Fix | Delete
This is an "external" header file. Don't give away any internals here!
[24] Fix | Delete
[25] Fix | Delete
GOALS
[26] Fix | Delete
[27] Fix | Delete
o Enable a "pull" interface. The application that uses libcurl decides where
[28] Fix | Delete
and when to ask libcurl to get/send data.
[29] Fix | Delete
[30] Fix | Delete
o Enable multiple simultaneous transfers in the same thread without making it
[31] Fix | Delete
complicated for the application.
[32] Fix | Delete
[33] Fix | Delete
o Enable the application to select() on its own file descriptors and curl's
[34] Fix | Delete
file descriptors simultaneous easily.
[35] Fix | Delete
[36] Fix | Delete
*/
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* This header file should not really need to include "curl.h" since curl.h
[40] Fix | Delete
* itself includes this file and we expect user applications to do #include
[41] Fix | Delete
* <curl/curl.h> without the need for especially including multi.h.
[42] Fix | Delete
*
[43] Fix | Delete
* For some reason we added this include here at one point, and rather than to
[44] Fix | Delete
* break existing (wrongly written) libcurl applications, we leave it as-is
[45] Fix | Delete
* but with this warning attached.
[46] Fix | Delete
*/
[47] Fix | Delete
#include "curl.h"
[48] Fix | Delete
[49] Fix | Delete
#ifdef __cplusplus
[50] Fix | Delete
extern "C" {
[51] Fix | Delete
#endif
[52] Fix | Delete
[53] Fix | Delete
#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER)
[54] Fix | Delete
typedef struct Curl_multi CURLM;
[55] Fix | Delete
#else
[56] Fix | Delete
typedef void CURLM;
[57] Fix | Delete
#endif
[58] Fix | Delete
[59] Fix | Delete
typedef enum {
[60] Fix | Delete
CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or
[61] Fix | Delete
curl_multi_socket*() soon */
[62] Fix | Delete
CURLM_OK,
[63] Fix | Delete
CURLM_BAD_HANDLE, /* the passed-in handle is not a valid CURLM handle */
[64] Fix | Delete
CURLM_BAD_EASY_HANDLE, /* an easy handle was not good/valid */
[65] Fix | Delete
CURLM_OUT_OF_MEMORY, /* if you ever get this, you're in deep sh*t */
[66] Fix | Delete
CURLM_INTERNAL_ERROR, /* this is a libcurl bug */
[67] Fix | Delete
CURLM_BAD_SOCKET, /* the passed in socket argument did not match */
[68] Fix | Delete
CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */
[69] Fix | Delete
CURLM_ADDED_ALREADY, /* an easy handle already added to a multi handle was
[70] Fix | Delete
attempted to get added - again */
[71] Fix | Delete
CURLM_RECURSIVE_API_CALL, /* an api function was called from inside a
[72] Fix | Delete
callback */
[73] Fix | Delete
CURLM_LAST
[74] Fix | Delete
} CURLMcode;
[75] Fix | Delete
[76] Fix | Delete
/* just to make code nicer when using curl_multi_socket() you can now check
[77] Fix | Delete
for CURLM_CALL_MULTI_SOCKET too in the same style it works for
[78] Fix | Delete
curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */
[79] Fix | Delete
#define CURLM_CALL_MULTI_SOCKET CURLM_CALL_MULTI_PERFORM
[80] Fix | Delete
[81] Fix | Delete
/* bitmask bits for CURLMOPT_PIPELINING */
[82] Fix | Delete
#define CURLPIPE_NOTHING 0L
[83] Fix | Delete
#define CURLPIPE_HTTP1 1L
[84] Fix | Delete
#define CURLPIPE_MULTIPLEX 2L
[85] Fix | Delete
[86] Fix | Delete
typedef enum {
[87] Fix | Delete
CURLMSG_NONE, /* first, not used */
[88] Fix | Delete
CURLMSG_DONE, /* This easy handle has completed. 'result' contains
[89] Fix | Delete
the CURLcode of the transfer */
[90] Fix | Delete
CURLMSG_LAST /* last, not used */
[91] Fix | Delete
} CURLMSG;
[92] Fix | Delete
[93] Fix | Delete
struct CURLMsg {
[94] Fix | Delete
CURLMSG msg; /* what this message means */
[95] Fix | Delete
CURL *easy_handle; /* the handle it concerns */
[96] Fix | Delete
union {
[97] Fix | Delete
void *whatever; /* message-specific data */
[98] Fix | Delete
CURLcode result; /* return code for transfer */
[99] Fix | Delete
} data;
[100] Fix | Delete
};
[101] Fix | Delete
typedef struct CURLMsg CURLMsg;
[102] Fix | Delete
[103] Fix | Delete
/* Based on poll(2) structure and values.
[104] Fix | Delete
* We don't use pollfd and POLL* constants explicitly
[105] Fix | Delete
* to cover platforms without poll(). */
[106] Fix | Delete
#define CURL_WAIT_POLLIN 0x0001
[107] Fix | Delete
#define CURL_WAIT_POLLPRI 0x0002
[108] Fix | Delete
#define CURL_WAIT_POLLOUT 0x0004
[109] Fix | Delete
[110] Fix | Delete
struct curl_waitfd {
[111] Fix | Delete
curl_socket_t fd;
[112] Fix | Delete
short events;
[113] Fix | Delete
short revents; /* not supported yet */
[114] Fix | Delete
};
[115] Fix | Delete
[116] Fix | Delete
/*
[117] Fix | Delete
* Name: curl_multi_init()
[118] Fix | Delete
*
[119] Fix | Delete
* Desc: inititalize multi-style curl usage
[120] Fix | Delete
*
[121] Fix | Delete
* Returns: a new CURLM handle to use in all 'curl_multi' functions.
[122] Fix | Delete
*/
[123] Fix | Delete
CURL_EXTERN CURLM *curl_multi_init(void);
[124] Fix | Delete
[125] Fix | Delete
/*
[126] Fix | Delete
* Name: curl_multi_add_handle()
[127] Fix | Delete
*
[128] Fix | Delete
* Desc: add a standard curl handle to the multi stack
[129] Fix | Delete
*
[130] Fix | Delete
* Returns: CURLMcode type, general multi error code.
[131] Fix | Delete
*/
[132] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_add_handle(CURLM *multi_handle,
[133] Fix | Delete
CURL *curl_handle);
[134] Fix | Delete
[135] Fix | Delete
/*
[136] Fix | Delete
* Name: curl_multi_remove_handle()
[137] Fix | Delete
*
[138] Fix | Delete
* Desc: removes a curl handle from the multi stack again
[139] Fix | Delete
*
[140] Fix | Delete
* Returns: CURLMcode type, general multi error code.
[141] Fix | Delete
*/
[142] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
[143] Fix | Delete
CURL *curl_handle);
[144] Fix | Delete
[145] Fix | Delete
/*
[146] Fix | Delete
* Name: curl_multi_fdset()
[147] Fix | Delete
*
[148] Fix | Delete
* Desc: Ask curl for its fd_set sets. The app can use these to select() or
[149] Fix | Delete
* poll() on. We want curl_multi_perform() called as soon as one of
[150] Fix | Delete
* them are ready.
[151] Fix | Delete
*
[152] Fix | Delete
* Returns: CURLMcode type, general multi error code.
[153] Fix | Delete
*/
[154] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle,
[155] Fix | Delete
fd_set *read_fd_set,
[156] Fix | Delete
fd_set *write_fd_set,
[157] Fix | Delete
fd_set *exc_fd_set,
[158] Fix | Delete
int *max_fd);
[159] Fix | Delete
[160] Fix | Delete
/*
[161] Fix | Delete
* Name: curl_multi_wait()
[162] Fix | Delete
*
[163] Fix | Delete
* Desc: Poll on all fds within a CURLM set as well as any
[164] Fix | Delete
* additional fds passed to the function.
[165] Fix | Delete
*
[166] Fix | Delete
* Returns: CURLMcode type, general multi error code.
[167] Fix | Delete
*/
[168] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle,
[169] Fix | Delete
struct curl_waitfd extra_fds[],
[170] Fix | Delete
unsigned int extra_nfds,
[171] Fix | Delete
int timeout_ms,
[172] Fix | Delete
int *ret);
[173] Fix | Delete
[174] Fix | Delete
/*
[175] Fix | Delete
* Name: curl_multi_perform()
[176] Fix | Delete
*
[177] Fix | Delete
* Desc: When the app thinks there's data available for curl it calls this
[178] Fix | Delete
* function to read/write whatever there is right now. This returns
[179] Fix | Delete
* as soon as the reads and writes are done. This function does not
[180] Fix | Delete
* require that there actually is data available for reading or that
[181] Fix | Delete
* data can be written, it can be called just in case. It returns
[182] Fix | Delete
* the number of handles that still transfer data in the second
[183] Fix | Delete
* argument's integer-pointer.
[184] Fix | Delete
*
[185] Fix | Delete
* Returns: CURLMcode type, general multi error code. *NOTE* that this only
[186] Fix | Delete
* returns errors etc regarding the whole multi stack. There might
[187] Fix | Delete
* still have occurred problems on individual transfers even when
[188] Fix | Delete
* this returns OK.
[189] Fix | Delete
*/
[190] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle,
[191] Fix | Delete
int *running_handles);
[192] Fix | Delete
[193] Fix | Delete
/*
[194] Fix | Delete
* Name: curl_multi_cleanup()
[195] Fix | Delete
*
[196] Fix | Delete
* Desc: Cleans up and removes a whole multi stack. It does not free or
[197] Fix | Delete
* touch any individual easy handles in any way. We need to define
[198] Fix | Delete
* in what state those handles will be if this function is called
[199] Fix | Delete
* in the middle of a transfer.
[200] Fix | Delete
*
[201] Fix | Delete
* Returns: CURLMcode type, general multi error code.
[202] Fix | Delete
*/
[203] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
[204] Fix | Delete
[205] Fix | Delete
/*
[206] Fix | Delete
* Name: curl_multi_info_read()
[207] Fix | Delete
*
[208] Fix | Delete
* Desc: Ask the multi handle if there's any messages/informationals from
[209] Fix | Delete
* the individual transfers. Messages include informationals such as
[210] Fix | Delete
* error code from the transfer or just the fact that a transfer is
[211] Fix | Delete
* completed. More details on these should be written down as well.
[212] Fix | Delete
*
[213] Fix | Delete
* Repeated calls to this function will return a new struct each
[214] Fix | Delete
* time, until a special "end of msgs" struct is returned as a signal
[215] Fix | Delete
* that there is no more to get at this point.
[216] Fix | Delete
*
[217] Fix | Delete
* The data the returned pointer points to will not survive calling
[218] Fix | Delete
* curl_multi_cleanup().
[219] Fix | Delete
*
[220] Fix | Delete
* The 'CURLMsg' struct is meant to be very simple and only contain
[221] Fix | Delete
* very basic information. If more involved information is wanted,
[222] Fix | Delete
* we will provide the particular "transfer handle" in that struct
[223] Fix | Delete
* and that should/could/would be used in subsequent
[224] Fix | Delete
* curl_easy_getinfo() calls (or similar). The point being that we
[225] Fix | Delete
* must never expose complex structs to applications, as then we'll
[226] Fix | Delete
* undoubtably get backwards compatibility problems in the future.
[227] Fix | Delete
*
[228] Fix | Delete
* Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
[229] Fix | Delete
* of structs. It also writes the number of messages left in the
[230] Fix | Delete
* queue (after this read) in the integer the second argument points
[231] Fix | Delete
* to.
[232] Fix | Delete
*/
[233] Fix | Delete
CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
[234] Fix | Delete
int *msgs_in_queue);
[235] Fix | Delete
[236] Fix | Delete
/*
[237] Fix | Delete
* Name: curl_multi_strerror()
[238] Fix | Delete
*
[239] Fix | Delete
* Desc: The curl_multi_strerror function may be used to turn a CURLMcode
[240] Fix | Delete
* value into the equivalent human readable error string. This is
[241] Fix | Delete
* useful for printing meaningful error messages.
[242] Fix | Delete
*
[243] Fix | Delete
* Returns: A pointer to a zero-terminated error message.
[244] Fix | Delete
*/
[245] Fix | Delete
CURL_EXTERN const char *curl_multi_strerror(CURLMcode);
[246] Fix | Delete
[247] Fix | Delete
/*
[248] Fix | Delete
* Name: curl_multi_socket() and
[249] Fix | Delete
* curl_multi_socket_all()
[250] Fix | Delete
*
[251] Fix | Delete
* Desc: An alternative version of curl_multi_perform() that allows the
[252] Fix | Delete
* application to pass in one of the file descriptors that have been
[253] Fix | Delete
* detected to have "action" on them and let libcurl perform.
[254] Fix | Delete
* See man page for details.
[255] Fix | Delete
*/
[256] Fix | Delete
#define CURL_POLL_NONE 0
[257] Fix | Delete
#define CURL_POLL_IN 1
[258] Fix | Delete
#define CURL_POLL_OUT 2
[259] Fix | Delete
#define CURL_POLL_INOUT 3
[260] Fix | Delete
#define CURL_POLL_REMOVE 4
[261] Fix | Delete
[262] Fix | Delete
#define CURL_SOCKET_TIMEOUT CURL_SOCKET_BAD
[263] Fix | Delete
[264] Fix | Delete
#define CURL_CSELECT_IN 0x01
[265] Fix | Delete
#define CURL_CSELECT_OUT 0x02
[266] Fix | Delete
#define CURL_CSELECT_ERR 0x04
[267] Fix | Delete
[268] Fix | Delete
typedef int (*curl_socket_callback)(CURL *easy, /* easy handle */
[269] Fix | Delete
curl_socket_t s, /* socket */
[270] Fix | Delete
int what, /* see above */
[271] Fix | Delete
void *userp, /* private callback
[272] Fix | Delete
pointer */
[273] Fix | Delete
void *socketp); /* private socket
[274] Fix | Delete
pointer */
[275] Fix | Delete
/*
[276] Fix | Delete
* Name: curl_multi_timer_callback
[277] Fix | Delete
*
[278] Fix | Delete
* Desc: Called by libcurl whenever the library detects a change in the
[279] Fix | Delete
* maximum number of milliseconds the app is allowed to wait before
[280] Fix | Delete
* curl_multi_socket() or curl_multi_perform() must be called
[281] Fix | Delete
* (to allow libcurl's timed events to take place).
[282] Fix | Delete
*
[283] Fix | Delete
* Returns: The callback should return zero.
[284] Fix | Delete
*/
[285] Fix | Delete
typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */
[286] Fix | Delete
long timeout_ms, /* see above */
[287] Fix | Delete
void *userp); /* private callback
[288] Fix | Delete
pointer */
[289] Fix | Delete
[290] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
[291] Fix | Delete
int *running_handles);
[292] Fix | Delete
[293] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle,
[294] Fix | Delete
curl_socket_t s,
[295] Fix | Delete
int ev_bitmask,
[296] Fix | Delete
int *running_handles);
[297] Fix | Delete
[298] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle,
[299] Fix | Delete
int *running_handles);
[300] Fix | Delete
[301] Fix | Delete
#ifndef CURL_ALLOW_OLD_MULTI_SOCKET
[302] Fix | Delete
/* This macro below was added in 7.16.3 to push users who recompile to use
[303] Fix | Delete
the new curl_multi_socket_action() instead of the old curl_multi_socket()
[304] Fix | Delete
*/
[305] Fix | Delete
#define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z)
[306] Fix | Delete
#endif
[307] Fix | Delete
[308] Fix | Delete
/*
[309] Fix | Delete
* Name: curl_multi_timeout()
[310] Fix | Delete
*
[311] Fix | Delete
* Desc: Returns the maximum number of milliseconds the app is allowed to
[312] Fix | Delete
* wait before curl_multi_socket() or curl_multi_perform() must be
[313] Fix | Delete
* called (to allow libcurl's timed events to take place).
[314] Fix | Delete
*
[315] Fix | Delete
* Returns: CURLM error code.
[316] Fix | Delete
*/
[317] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle,
[318] Fix | Delete
long *milliseconds);
[319] Fix | Delete
[320] Fix | Delete
#undef CINIT /* re-using the same name as in curl.h */
[321] Fix | Delete
[322] Fix | Delete
#ifdef CURL_ISOCPP
[323] Fix | Delete
#define CINIT(name,type,num) CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num
[324] Fix | Delete
#else
[325] Fix | Delete
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
[326] Fix | Delete
#define LONG CURLOPTTYPE_LONG
[327] Fix | Delete
#define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT
[328] Fix | Delete
#define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
[329] Fix | Delete
#define OFF_T CURLOPTTYPE_OFF_T
[330] Fix | Delete
#define CINIT(name,type,number) CURLMOPT_/**/name = type + number
[331] Fix | Delete
#endif
[332] Fix | Delete
[333] Fix | Delete
typedef enum {
[334] Fix | Delete
/* This is the socket callback function pointer */
[335] Fix | Delete
CINIT(SOCKETFUNCTION, FUNCTIONPOINT, 1),
[336] Fix | Delete
[337] Fix | Delete
/* This is the argument passed to the socket callback */
[338] Fix | Delete
CINIT(SOCKETDATA, OBJECTPOINT, 2),
[339] Fix | Delete
[340] Fix | Delete
/* set to 1 to enable pipelining for this multi handle */
[341] Fix | Delete
CINIT(PIPELINING, LONG, 3),
[342] Fix | Delete
[343] Fix | Delete
/* This is the timer callback function pointer */
[344] Fix | Delete
CINIT(TIMERFUNCTION, FUNCTIONPOINT, 4),
[345] Fix | Delete
[346] Fix | Delete
/* This is the argument passed to the timer callback */
[347] Fix | Delete
CINIT(TIMERDATA, OBJECTPOINT, 5),
[348] Fix | Delete
[349] Fix | Delete
/* maximum number of entries in the connection cache */
[350] Fix | Delete
CINIT(MAXCONNECTS, LONG, 6),
[351] Fix | Delete
[352] Fix | Delete
/* maximum number of (pipelining) connections to one host */
[353] Fix | Delete
CINIT(MAX_HOST_CONNECTIONS, LONG, 7),
[354] Fix | Delete
[355] Fix | Delete
/* maximum number of requests in a pipeline */
[356] Fix | Delete
CINIT(MAX_PIPELINE_LENGTH, LONG, 8),
[357] Fix | Delete
[358] Fix | Delete
/* a connection with a content-length longer than this
[359] Fix | Delete
will not be considered for pipelining */
[360] Fix | Delete
CINIT(CONTENT_LENGTH_PENALTY_SIZE, OFF_T, 9),
[361] Fix | Delete
[362] Fix | Delete
/* a connection with a chunk length longer than this
[363] Fix | Delete
will not be considered for pipelining */
[364] Fix | Delete
CINIT(CHUNK_LENGTH_PENALTY_SIZE, OFF_T, 10),
[365] Fix | Delete
[366] Fix | Delete
/* a list of site names(+port) that are blacklisted from
[367] Fix | Delete
pipelining */
[368] Fix | Delete
CINIT(PIPELINING_SITE_BL, OBJECTPOINT, 11),
[369] Fix | Delete
[370] Fix | Delete
/* a list of server types that are blacklisted from
[371] Fix | Delete
pipelining */
[372] Fix | Delete
CINIT(PIPELINING_SERVER_BL, OBJECTPOINT, 12),
[373] Fix | Delete
[374] Fix | Delete
/* maximum number of open connections in total */
[375] Fix | Delete
CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13),
[376] Fix | Delete
[377] Fix | Delete
/* This is the server push callback function pointer */
[378] Fix | Delete
CINIT(PUSHFUNCTION, FUNCTIONPOINT, 14),
[379] Fix | Delete
[380] Fix | Delete
/* This is the argument passed to the server push callback */
[381] Fix | Delete
CINIT(PUSHDATA, OBJECTPOINT, 15),
[382] Fix | Delete
[383] Fix | Delete
CURLMOPT_LASTENTRY /* the last unused */
[384] Fix | Delete
} CURLMoption;
[385] Fix | Delete
[386] Fix | Delete
[387] Fix | Delete
/*
[388] Fix | Delete
* Name: curl_multi_setopt()
[389] Fix | Delete
*
[390] Fix | Delete
* Desc: Sets options for the multi handle.
[391] Fix | Delete
*
[392] Fix | Delete
* Returns: CURLM error code.
[393] Fix | Delete
*/
[394] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle,
[395] Fix | Delete
CURLMoption option, ...);
[396] Fix | Delete
[397] Fix | Delete
[398] Fix | Delete
/*
[399] Fix | Delete
* Name: curl_multi_assign()
[400] Fix | Delete
*
[401] Fix | Delete
* Desc: This function sets an association in the multi handle between the
[402] Fix | Delete
* given socket and a private pointer of the application. This is
[403] Fix | Delete
* (only) useful for curl_multi_socket uses.
[404] Fix | Delete
*
[405] Fix | Delete
* Returns: CURLM error code.
[406] Fix | Delete
*/
[407] Fix | Delete
CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle,
[408] Fix | Delete
curl_socket_t sockfd, void *sockp);
[409] Fix | Delete
[410] Fix | Delete
[411] Fix | Delete
/*
[412] Fix | Delete
* Name: curl_push_callback
[413] Fix | Delete
*
[414] Fix | Delete
* Desc: This callback gets called when a new stream is being pushed by the
[415] Fix | Delete
* server. It approves or denies the new stream.
[416] Fix | Delete
*
[417] Fix | Delete
* Returns: CURL_PUSH_OK or CURL_PUSH_DENY.
[418] Fix | Delete
*/
[419] Fix | Delete
#define CURL_PUSH_OK 0
[420] Fix | Delete
#define CURL_PUSH_DENY 1
[421] Fix | Delete
[422] Fix | Delete
struct curl_pushheaders; /* forward declaration only */
[423] Fix | Delete
[424] Fix | Delete
CURL_EXTERN char *curl_pushheader_bynum(struct curl_pushheaders *h,
[425] Fix | Delete
size_t num);
[426] Fix | Delete
CURL_EXTERN char *curl_pushheader_byname(struct curl_pushheaders *h,
[427] Fix | Delete
const char *name);
[428] Fix | Delete
[429] Fix | Delete
typedef int (*curl_push_callback)(CURL *parent,
[430] Fix | Delete
CURL *easy,
[431] Fix | Delete
size_t num_headers,
[432] Fix | Delete
struct curl_pushheaders *headers,
[433] Fix | Delete
void *userp);
[434] Fix | Delete
[435] Fix | Delete
#ifdef __cplusplus
[436] Fix | Delete
} /* end of extern "C" */
[437] Fix | Delete
#endif
[438] Fix | Delete
[439] Fix | Delete
#endif
[440] Fix | Delete
[441] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function