#include <stdlib.h>
#include "logging.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <strings.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "webserver/connection-handler.h"
Go to the source code of this file.
#define JUMP_SIZE (1 << 14) |
#define MAX_DB_RCV_LEN 64 |
#define MAX_FILE_SIZE (long)(1 * (1 << 29)) |
long access_file |
( |
struct mock_file * |
file, |
|
|
long |
total_size |
|
) |
| |
void* allocate_db_memory |
( |
| ) |
|
long allocate_file |
( |
struct mock_file * |
file, |
|
|
long |
file_size |
|
) |
| |
int connect_to_db |
( |
struct db_state * |
state | ) |
|
void free_db_memory |
( |
void * |
memory | ) |
|
void init_db |
( |
char * |
ip, |
|
|
int |
port, |
|
|
int |
n_files |
|
) |
| |
int recv_from_db |
( |
struct db_state * |
state | ) |
|
int send_to_db |
( |
struct db_state * |
state | ) |
|
struct sockaddr_in db_addr |