Multi-ApplicationOnlineProfiling
2.1
|
#include "nsc.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <openssl/sha.h>
#include <signal.h>
#include "CRC64.h"
Go to the source code of this file.
Data Structures | |
struct | nscRoutingThreadCtx |
Functions | |
char * | Context_host_from_env () |
char * | Context_passwd_from_env () |
int | Context_init_data (struct Context *ctx, char *phost_port, char *password) |
int | Context_init (struct Context *ctx) |
void | Context_release (struct Context *ctx) |
static int | _nodeSharedCache_send (int socket, char *key, uint32_t len_key, char *json, uint32_t len_json, uint32_t action) |
static int | _nodeSharedCache_send_up (struct nodeSharedCache *nsc, char *key, uint32_t len_key, char *json, uint32_t len_json, uint32_t action) |
int | nodeSharedCache_send_up (struct nodeSharedCache *nsc, char *key, char *json, uint32_t action) |
static int | _nodeSharedCache_send_down (struct nodeSharedCache *nsc, char *key, uint32_t len_key, char *json, uint32_t len_json, uint32_t action) |
int | nodeSharedCache_send_down (struct nodeSharedCache *nsc, char *key, char *json, uint32_t action) |
void | socket_flag_timeouts (int socket, int *socket_flagged_read, int *socket_flagged_write) |
int | nodeSharedCache_incoming_set (struct nodeSharedCache *nsc, char *key_buff, char *read_buff, uint32_t data_len) |
int | safe_write (int fd, void *src, size_t size) |
static int | nodeSharedCacheRead_Header (int socket, uint32_t *action, uint32_t *key_len, uint32_t *data_len) |
static int | nodeSharedCacheRead_Key (int socket, char *key_buff, uint32_t key_len) |
static int | nodeSharedCacheRead_Payload (int socket, char *read_buff, uint32_t data_len, uint32_t max_buffer_size) |
void * | nodeSharedCache_read_loop (void *pnsc) |
uint64_t | nodeSharedCache_compute_auth_digest (char *passwd, char *challenge) |
int | nodeSharedCache_do_auth (struct nodeSharedCache *nsc) |
int | _nodeSharedCache_init (struct nodeSharedCache *nsc) |
int | nodeSharedCache_init (struct nodeSharedCache *nsc) |
int | nodeSharedCache_proxy_greetings (int socket) |
int | nodeSharedCache_proxy_auth (struct nodeSharedCache *nsc, int socket) |
int | nodeSharedCache_proxy_send_config (struct nodeSharedCache *nsc, int socket) |
void * | nodeSharedCache_proxy_routing_thread (void *arg) |
int | nodeSharedCache_proxy_accept_clients (struct nodeSharedCache *nsc) |
int | nodeSharedCache_proxy_init (struct nodeSharedCache *nsc, char *destination_server, int expected_clients) |
void | nodeSharedCache_wait (struct nodeSharedCache *nsc) |
void | nodeSharedCache_release (struct nodeSharedCache *nsc) |
void | nodeSharedCache_set_handler (char *key, json_t *elem, void *ctx) |
void | nodeSharedCache_delete_handler (char *key, void *ctx) |
void | nodeSharedCache_set_json (struct nodeSharedCache *nsc, char *key, char *json) |
void | nodeSharedCache_set (struct nodeSharedCache *nsc, char *key, json_t *json) |
void | nodeSharedCache_reduce_json (struct nodeSharedCache *nsc, char *key, char *json) |
void | nodeSharedCache_reduce (struct nodeSharedCache *nsc, char *key, json_t *elem) |
json_t * | nodeSharedCache_get (struct nodeSharedCache *nsc, char *key) |
char * | nodeSharedCache_get_json (struct nodeSharedCache *nsc, char *key) |
void | nodeSharedCache_delete (struct nodeSharedCache *nsc, char *key) |
void | nodeSharedCache_commit (struct nodeSharedCache *nsc, char *key) |
int _nodeSharedCache_init | ( | struct nodeSharedCache * | nsc | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
char* Context_host_from_env | ( | ) |
int Context_init | ( | struct Context * | ctx | ) |
int Context_init_data | ( | struct Context * | ctx, |
char * | phost_port, | ||
char * | password | ||
) |
char* Context_passwd_from_env | ( | ) |
void Context_release | ( | struct Context * | ctx | ) |
void nodeSharedCache_commit | ( | struct nodeSharedCache * | nsc, |
char * | key | ||
) |
uint64_t nodeSharedCache_compute_auth_digest | ( | char * | passwd, |
char * | challenge | ||
) |
void nodeSharedCache_delete | ( | struct nodeSharedCache * | nsc, |
char * | key | ||
) |
void nodeSharedCache_delete_handler | ( | char * | key, |
void * | ctx | ||
) |
int nodeSharedCache_do_auth | ( | struct nodeSharedCache * | nsc | ) |
json_t* nodeSharedCache_get | ( | struct nodeSharedCache * | nsc, |
char * | key | ||
) |
char* nodeSharedCache_get_json | ( | struct nodeSharedCache * | nsc, |
char * | key | ||
) |
int nodeSharedCache_incoming_set | ( | struct nodeSharedCache * | nsc, |
char * | key_buff, | ||
char * | read_buff, | ||
uint32_t | data_len | ||
) |
int nodeSharedCache_init | ( | struct nodeSharedCache * | nsc | ) |
int nodeSharedCache_proxy_accept_clients | ( | struct nodeSharedCache * | nsc | ) |
int nodeSharedCache_proxy_auth | ( | struct nodeSharedCache * | nsc, |
int | socket | ||
) |
int nodeSharedCache_proxy_greetings | ( | int | socket | ) |
int nodeSharedCache_proxy_init | ( | struct nodeSharedCache * | nsc, |
char * | destination_server, | ||
int | expected_clients | ||
) |
void* nodeSharedCache_proxy_routing_thread | ( | void * | arg | ) |
int nodeSharedCache_proxy_send_config | ( | struct nodeSharedCache * | nsc, |
int | socket | ||
) |
void* nodeSharedCache_read_loop | ( | void * | pnsc | ) |
void nodeSharedCache_reduce | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
json_t * | elem | ||
) |
void nodeSharedCache_reduce_json | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
char * | json | ||
) |
void nodeSharedCache_release | ( | struct nodeSharedCache * | nsc | ) |
int nodeSharedCache_send_down | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
char * | json, | ||
uint32_t | action | ||
) |
int nodeSharedCache_send_up | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
char * | json, | ||
uint32_t | action | ||
) |
void nodeSharedCache_set | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
json_t * | json | ||
) |
void nodeSharedCache_set_handler | ( | char * | key, |
json_t * | elem, | ||
void * | ctx | ||
) |
void nodeSharedCache_set_json | ( | struct nodeSharedCache * | nsc, |
char * | key, | ||
char * | json | ||
) |
void nodeSharedCache_wait | ( | struct nodeSharedCache * | nsc | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
int safe_write | ( | int | fd, |
void * | src, | ||
size_t | size | ||
) |