Ignore:
Timestamp:
Feb 12, 2015, 5:01:11 PM (9 years ago)
Author:
djay
Message:

Add initial doxygen comments in some C files, for future documentation generation.

File:
1 edited

Legend:

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

    r554 r579  
    1 /**
     1/*
    22 * Author : Gérald FENOY
    33 *
     
    5656static char CCookie[MAX_REQ][1024];
    5757#else
    58 extern char HEADER[MAX_REQ][3072];
     58/**
     59 * The cookies found
     60 */
    5961extern char CCookie[MAX_REQ][1024];
    6062#endif
     
    6466#endif
    6567
    66   //static pthread_mutex_t hMutexConnect = PTHREAD_MUTEX_INITIALIZER;
    67 
    68 static char* waitingRequests[MAX_REQ];
    69 
    7068struct MemoryStruct {
    71   char *memory;
    72   size_t size;
     69  char *memory; //!< the memory space to store data
     70  size_t size; //!< side of the memory space
    7371};
    7472
     73  /**
     74   * Individual CURL handler
     75   */
    7576typedef struct {
    76   CURL *handle;
    77   struct curl_slist *header;
    78   char* filename;
    79   FILE* file;
    80   size_t size;
    81   unsigned char *pabyData;
    82   char *mimeType;
    83   int hasCacheFile;
    84   int nDataLen;
    85   int nDataAlloc;
    86   int id;
     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
    8787} _HINTERNET;
    8888
     89  /**
     90   * Multiple CURL handlers
     91   */
    8992typedef struct {
    90   CURLM *handle;
    91   _HINTERNET ihandle[MAX_REQ];
    92   char *waitingRequests[MAX_REQ];
    93   char *agent;
    94   int nb;
     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
    9598} HINTERNET;
    9699
    97100size_t write_data_into(void *buffer, size_t size, size_t nmemb, void *data);
    98101
    99 size_t content_write_data(void *buffer, size_t size, size_t nmemb, void *data);
    100 
    101102size_t header_write_data(void *buffer, size_t size, size_t nmemb, void *data);
    102103
    103 
    104104void setProxy(CURL* handle,char* host,long port);
    105 
    106105
    107106#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__))
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