Ignore:
Timestamp:
Mar 12, 2015, 3:14:52 AM (9 years ago)
Author:
djay
Message:

Introduce the Process Profiles Registry with its documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/ulinet.h

    r579 r607  
    6666#endif
    6767
    68 struct MemoryStruct {
    69   char *memory; //!< the memory space to store data
    70   size_t size; //!< side of the memory space
    71 };
     68  struct MemoryStruct {
     69    char *memory; //!< the memory space to store data
     70    size_t size; //!< size of the memory space
     71  };
    7272
    7373  /**
    7474   * Individual CURL handler
    7575   */
    76 typedef struct {
    77   CURL *handle; //!< the CURL handler
    78   struct curl_slist *header; //!< the headers to send
    79   char* filename; //!< the cached file name
    80   FILE* file; //!< the file pointer
    81   unsigned char *pabyData; //!< the downloaded content
    82   char *mimeType; //!< the mimeType returned by the server
    83   int hasCacheFile; //!< 1 if we used a cache file
    84   int nDataLen; //!< the length of the downloaded content
    85   int nDataAlloc; //!<
    86   int id; //!< The position of the element in the queue
    87 } _HINTERNET;
     76  typedef struct {
     77    CURL *handle; //!< the CURL handler
     78    struct curl_slist *header; //!< the headers to send
     79    char* filename; //!< the cached file name
     80    FILE* file; //!< the file pointer
     81    unsigned char *pabyData; //!< the downloaded content
     82    char *mimeType; //!< the mimeType returned by the server
     83    int hasCacheFile; //!< 1 if we used a cache file
     84    int nDataLen; //!< the length of the downloaded content
     85    int nDataAlloc; //!<
     86    long code; //!< the last received response code
     87    int id; //!< The position of the element in the queue
     88  } _HINTERNET;
    8889
    8990  /**
    9091   * Multiple CURL handlers
    9192   */
    92 typedef struct {
    93   CURLM *handle; //!< the CURLM handler
    94   _HINTERNET ihandle[MAX_REQ]; //!< individual handlers in the queue
    95   char *waitingRequests[MAX_REQ]; //!< request in the queue
    96   char *agent; //!< The User-Agent to use for HTTP request
    97   int nb; //!< number of element in the queue
    98 } HINTERNET;
     93  typedef struct {
     94    CURLM *handle; //!< the CURLM handler
     95    _HINTERNET ihandle[MAX_REQ]; //!< individual handlers in the queue
     96    char *waitingRequests[MAX_REQ]; //!< request in the queue
     97    char *agent; //!< The User-Agent to use for HTTP request
     98    int nb; //!< number of element in the queue
     99  } HINTERNET;
    99100
    100 size_t write_data_into(void *buffer, size_t size, size_t nmemb, void *data);
     101  size_t write_data_into(void*,size_t,size_t,void*);
    101102
    102 size_t header_write_data(void *buffer, size_t size, size_t nmemb, void *data);
     103  size_t header_write_data(void*,size_t,size_t,void*);
    103104
    104 void setProxy(CURL* handle,char* host,long port);
     105  void setProxy(CURL*,char*,long);
    105106
    106107#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
     
    108109#include <CoreServices/CoreServices.h>
    109110#include <SystemConfiguration/SystemConfiguration.h>
    110 char* CFStringToCString(CFStringRef dest,char * buffer);
    111 OSStatus setProxiesForProtcol(CURL* handle,const char *proto);
     111  char* CFStringToCString(CFStringRef,char*);
     112  OSStatus setProxiesForProtcol(CURL*,const char*);
    112113
    113114#else
    114115
    115116//#include <gconf/gconf-client.h>
    116 int setProxiesForProtcol(CURL* handle,const char *proto);
     117  int setProxiesForProtcol(CURL*,const char*);
    117118
    118119#endif
     
    126127typedef char* LPCTSTR;
    127128#endif
    128 HINTERNET InternetOpen(char* lpszAgent,int dwAccessType,char* lpszProxyName,char* lpszProxyBypass,int dwFlags);
     129  HINTERNET InternetOpen(char*,int,char*,char*,int);
    129130
    130 void InternetCloseHandle(HINTERNET* handle);
     131  void InternetCloseHandle(HINTERNET*);
    131132
    132133#define INTERNET_FLAG_EXISTING_CONNECT         0
     
    143144//typedef char* LPVOID;
    144145#ifndef WIN32
    145 typedef void* LPVOID;
    146 typedef void* LPTSTR;
    147 typedef size_t* LPDWORD;
     146  typedef void* LPVOID;
     147  typedef void* LPTSTR;
     148  typedef size_t* LPDWORD;
    148149#endif
    149150#ifndef bool
     
    153154#  define CHECK_INET_HANDLE(h) (h.handle != 0)
    154155
    155 HINTERNET InternetOpenUrl(HINTERNET* hInternet,LPCTSTR lpszUrl,LPCTSTR lpszHeaders,size_t dwHeadersLength,size_t dwFlags,size_t dwContext);
     156  HINTERNET InternetOpenUrl(HINTERNET*,LPCTSTR,LPCTSTR,size_t,size_t,size_t);
    156157
    157 int processDownloads(HINTERNET* hInternet);
     158  int processDownloads(HINTERNET*);
    158159
    159 int freeCookieList(HINTERNET hInternet);
     160  int freeCookieList(HINTERNET);
    160161
    161 int InternetReadFile(_HINTERNET hInternet,LPVOID lpBuffer,int dwNumberOfBytesToRead,size_t *lpdwNumberOfBytesRead);
     162  int InternetReadFile(_HINTERNET,LPVOID,int,size_t*);
     163
     164  int setBasicAuth(HINTERNET,char*,char*);
    162165
    163166#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png