#include "runtime_communication.h"
#include "communication.h"
#include "logging.h"
#include "rt_controller_messages.h"
#include "stat_msg_handler.h"
#include "epollops.h"
#include "stats.h"
#include "unused_def.h"
#include "dfg_writer.h"
#include "haproxy.h"
#include <signal.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <sys/stat.h>
Go to the source code of this file.
|
int | runtime_fd (unsigned int runtime_id) |
|
static int | runtime_id (int runtime_fd) |
|
int | send_to_runtime (unsigned int runtime_id, struct ctrl_runtime_msg_hdr *hdr, void *payload) |
|
static int | send_add_runtime_msg (unsigned int target_id, int new_rt_id, uint32_t ip, int port) |
|
static int | remove_runtime_endpoint (int fd) |
|
static int | add_runtime_endpoint (unsigned int runtime_id, int fd, uint32_t ip, int port) |
|
static int | process_rt_init_message (ssize_t payload_size, int fd) |
|
static int | process_rt_stats_message (size_t payload_size, int fd) |
|
static int | process_rt_message_hdr (struct rt_controller_msg_hdr *hdr, int fd) |
|
static void | add_output_sock (int fd) |
|
static int | handle_runtime_communication (int fd, void UNUSED *data) |
|
int | get_output_listener (int port) |
|
int | runtime_communication_loop (int listen_port, char *output_file, int output_port) |
|
#define MAX_OUTPUT_SOCKS 2 |
#define MAX_RUNTIME_ID 32 |
static void add_output_sock |
( |
int |
fd | ) |
|
|
static |
static int add_runtime_endpoint |
( |
unsigned int |
runtime_id, |
|
|
int |
fd, |
|
|
uint32_t |
ip, |
|
|
int |
port |
|
) |
| |
|
static |
int get_output_listener |
( |
int |
port | ) |
|
static int handle_runtime_communication |
( |
int |
fd, |
|
|
void UNUSED * |
data |
|
) |
| |
|
static |
static int process_rt_init_message |
( |
ssize_t |
payload_size, |
|
|
int |
fd |
|
) |
| |
|
static |
static int process_rt_stats_message |
( |
size_t |
payload_size, |
|
|
int |
fd |
|
) |
| |
|
static |
static int remove_runtime_endpoint |
( |
int |
fd | ) |
|
|
static |
int runtime_communication_loop |
( |
int |
listen_port, |
|
|
char * |
output_file, |
|
|
int |
output_port |
|
) |
| |
int runtime_fd |
( |
unsigned int |
runtime_id | ) |
|
static int runtime_id |
( |
int |
runtime_fd | ) |
|
|
static |
static int send_add_runtime_msg |
( |
unsigned int |
target_id, |
|
|
int |
new_rt_id, |
|
|
uint32_t |
ip, |
|
|
int |
port |
|
) |
| |
|
static |
int output_listen_sock = -1 |
|
static |