easy.h
Go to the documentation of this file.
00001 #ifndef __CURL_EASY_H
00002 #define __CURL_EASY_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 #ifdef  __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 CURL_EXTERN CURL *curl_easy_init(void);
00029 CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...);
00030 CURL_EXTERN CURLcode curl_easy_perform(CURL *curl);
00031 CURL_EXTERN void curl_easy_cleanup(CURL *curl);
00032 
00033 /*
00034  * NAME curl_easy_getinfo()
00035  *
00036  * DESCRIPTION
00037  *
00038  * Request internal information from the curl session with this function.  The
00039  * third argument MUST be a pointer to a long, a pointer to a char * or a
00040  * pointer to a double (as the documentation describes elsewhere).  The data
00041  * pointed to will be filled in accordingly and can be relied upon only if the
00042  * function returns CURLE_OK.  This function is intended to get used *AFTER* a
00043  * performed transfer, all results from this function are undefined until the
00044  * transfer is completed.
00045  */
00046 CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
00047 
00048 
00049 /*
00050  * NAME curl_easy_duphandle()
00051  *
00052  * DESCRIPTION
00053  *
00054  * Creates a new curl session handle with the same options set for the handle
00055  * passed in. Duplicating a handle could only be a matter of cloning data and
00056  * options, internal state info and things like persistent connections cannot
00057  * be transferred. It is useful in multithreaded applications when you can run
00058  * curl_easy_duphandle() for each new thread to avoid a series of identical
00059  * curl_easy_setopt() invokes in every thread.
00060  */
00061 CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl);
00062 
00063 /*
00064  * NAME curl_easy_reset()
00065  *
00066  * DESCRIPTION
00067  *
00068  * Re-initializes a CURL handle to the default values. This puts back the
00069  * handle to the same state as it was in when it was just created.
00070  *
00071  * It does keep: live connections, the Session ID cache, the DNS cache and the
00072  * cookies.
00073  */
00074 CURL_EXTERN void curl_easy_reset(CURL *curl);
00075 
00076 /*
00077  * NAME curl_easy_recv()
00078  *
00079  * DESCRIPTION
00080  *
00081  * Receives data from the connected socket. Use after successful
00082  * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
00083  */
00084 CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen,
00085                                     size_t *n);
00086 
00087 /*
00088  * NAME curl_easy_send()
00089  *
00090  * DESCRIPTION
00091  *
00092  * Sends data over the connected socket. Use after successful
00093  * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
00094  */
00095 CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer,
00096                                     size_t buflen, size_t *n);
00097 
00098 #ifdef  __cplusplus
00099 }
00100 #endif
00101 
00102 #endif


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02