A very fast kyoto cabinet powered memcache interface http proxy caching server.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef FERRITE_PROXY
|
|
|
#define FERRITE_PROXY
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
#include <time.h>
|
|
|
#include "common.h"
|
|
|
#include "queue.h"
|
|
|
|
|
|
typedef struct {
|
|
|
char* data;
|
|
|
size_t size;
|
|
|
} CURL_RESULT;
|
|
|
|
|
|
size_t curl_write(char* ptr, size_t size, size_t nmemb, CURL_RESULT* result);
|
|
|
void* call_proxy(void* arg);
|
|
|
#endif
|