CLD
0.1git
|
#include <sys/types.h>
#include <openssl/ssl.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <glib.h>
#include <chunk_msg.h>
Data Structures | |
struct | st_object |
struct | st_keylist |
struct | st_client |
Functions | |
void | stc_free (struct st_client *stc) |
void | stc_free_keylist (struct st_keylist *keylist) |
void | stc_free_object (struct st_object *obj) |
void | stc_init (void) |
struct st_client * | stc_new (const char *service_host, int port, const char *user, const char *secret_key, bool encrypt) |
bool | stc_table_open (struct st_client *stc, const void *key, size_t key_len, uint32_t flags) |
bool | stc_get (struct st_client *stc, const void *key, size_t key_len, size_t(*write_cb)(void *, size_t, size_t, void *), void *user_data) |
void * | stc_get_inline (struct st_client *stc, const void *key, size_t key_len, size_t *len) |
bool | stc_get_start (struct st_client *stc, const void *key, size_t key_len, int *pfd, uint64_t *len) |
size_t | stc_get_recv (struct st_client *stc, void *data, size_t len) |
bool | stc_put (struct st_client *stc, const void *key, size_t key_len, size_t(*read_cb)(void *, size_t, size_t, void *), uint64_t len, void *user_data, uint32_t flags) |
bool | stc_put_start (struct st_client *stc, const void *key, size_t key_len, uint64_t cont_len, int *pfd, uint32_t flags) |
size_t | stc_put_send (struct st_client *stc, void *data, size_t len) |
bool | stc_put_sync (struct st_client *stc) |
bool | stc_put_inline (struct st_client *stc, const void *key, size_t key_len, void *data, uint64_t len, uint32_t flags) |
bool | stc_cp (struct st_client *stc, const void *dest_key, size_t dest_key_len, const void *src_key, size_t src_key_len) |
bool | stc_del (struct st_client *stc, const void *key, size_t key_len) |
bool | stc_ping (struct st_client *stc) |
bool | stc_check_start (struct st_client *stc) |
bool | stc_check_status (struct st_client *stc, struct chunk_check_status *out) |
struct st_keylist * | stc_keys (struct st_client *stc) |
int | stc_readport (const char *fname) |
bool stc_check_start | ( | struct st_client * | stc | ) |
bool stc_check_status | ( | struct st_client * | stc, |
struct chunk_check_status * | out | ||
) |
bool stc_cp | ( | struct st_client * | stc, |
const void * | dest_key, | ||
size_t | dest_key_len, | ||
const void * | src_key, | ||
size_t | src_key_len | ||
) |
bool stc_del | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len | ||
) |
void stc_free | ( | struct st_client * | stc | ) |
void stc_free_keylist | ( | struct st_keylist * | keylist | ) |
void stc_free_object | ( | struct st_object * | obj | ) |
bool stc_get | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
size_t(*)(void *, size_t, size_t, void *) | write_cb, | ||
void * | user_data | ||
) |
void* stc_get_inline | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
size_t * | len | ||
) |
size_t stc_get_recv | ( | struct st_client * | stc, |
void * | data, | ||
size_t | len | ||
) |
bool stc_get_start | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
int * | pfd, | ||
uint64_t * | len | ||
) |
void stc_init | ( | void | ) |
struct st_keylist* stc_keys | ( | struct st_client * | stc | ) |
struct st_client* stc_new | ( | const char * | service_host, |
int | port, | ||
const char * | user, | ||
const char * | secret_key, | ||
bool | encrypt | ||
) |
bool stc_ping | ( | struct st_client * | stc | ) |
bool stc_put | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
size_t(*)(void *, size_t, size_t, void *) | read_cb, | ||
uint64_t | len, | ||
void * | user_data, | ||
uint32_t | flags | ||
) |
bool stc_put_inline | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
void * | data, | ||
uint64_t | len, | ||
uint32_t | flags | ||
) |
size_t stc_put_send | ( | struct st_client * | stc, |
void * | data, | ||
size_t | len | ||
) |
bool stc_put_start | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
uint64_t | cont_len, | ||
int * | pfd, | ||
uint32_t | flags | ||
) |
bool stc_put_sync | ( | struct st_client * | stc | ) |
int stc_readport | ( | const char * | fname | ) |
bool stc_table_open | ( | struct st_client * | stc, |
const void * | key, | ||
size_t | key_len, | ||
uint32_t | flags | ||
) |