37 log_error(
"Regex MSU received request without regex");
49 .
name =
"Webserver_regex_msu",
static int craft_ws_regex_response(struct local_msu *self, struct msu_msg *msg)
int shortest_queue_route(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
Chooses the local MSU with the shortest queue.
Defines a type of MSU, including callback and accessor functions.
struct msu_type WEBSERVER_REGEX_MSU_TYPE
int craft_regex_response(char *url, char *response)
Logging of status messages to the terminal.
struct msu_type WEBSERVER_WRITE_MSU_TYPE
Declares the methods available for calling an MSU from another MSU.
#define log_error(fmt,...)
Declares the structures and functions applicable to MSUs on the local machine.
The structure that represents an MSU located on the local machine.
int call_msu_type(struct local_msu *sender, struct msu_type *dst_type, struct msu_msg_hdr *hdr, size_t data_size, void *data)
Sends an MSU message to a destination of the given type, utilizing the sending MSU's routing function...
int generate_header(char *dest, int code, int capacity, int body_len, char *mime_type)
A message that is to be delivered to an instance of an MSU.
char * name
Name for the msu type.
Declares strategies that MSUs can use for routing to endpoints.
#define WEBSERVER_REGEX_MSU_TYPE_ID