24 #ifndef CONTROLLER_COMMUNICATION_H_
25 #define CONTROLLER_COMMUNICATION_H_
26 #include "netinet/ip.h"
int send_to_controller(struct rt_controller_msg_hdr *msg, void *payload)
Sends a message to the global controller.
int send_ack_message(int ack_id, bool success)
WILL Send an acknoweledgement of success for a specific message.
bool is_controller_fd(int fd)
Checks if fd is file descriptor for controller.
int send_stats_to_controller()
Samples the relevant statistics and sends them to the controller.
Header for all messages from controller to runtime.
int handle_controller_communication(int fd)
Reads and processes a controller message off of the provided file descriptor.
Definitions of structures for sending messages from the global controller to runtimes.
int init_controller_socket(struct sockaddr_in *addr)
Initilizes a connection with the global controller located at the provided address.
Definitiions of structures for sending messages from runtimes to controller.