My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions | Variables
read_msu.c File Reference
#include "webserver/read_msu.h"
#include "webserver/http_msu.h"
#include "webserver/sslops.h"
#include "socket_msu.h"
#include "webserver/connection-handler.h"
#include "routing_strategies.h"
#include "logging.h"
#include "msu_state.h"
#include "local_msu.h"
#include "msu_message.h"
#include "routing.h"
#include "local_files.h"
#include "msu_calls.h"
#include "unused_def.h"
#include <signal.h>

Go to the source code of this file.

Classes

struct  ws_read_state
 

Macros

#define SSL_INIT_CMD   "SSL"
 

Functions

static int handle_read (struct read_state *read_state, struct ws_read_state *msu_state, struct local_msu *self, struct msu_msg *msg)
 
static int handle_accept (struct read_state *read_state, struct ws_read_state *msu_state, struct local_msu *self, struct msu_msg *msg)
 
static int read_http_request (struct local_msu *self, struct msu_msg *msg)
 
static int ws_read_init (struct local_msu *self, struct msu_init_data *data)
 
static void ws_read_destroy (struct local_msu *self)
 
static int init_ssl_ctx (struct msu_type UNUSED *type)
 
static void destroy_ssl_ctx (struct msu_type UNUSED *type)
 

Variables

struct msu_type WEBSERVER_READ_MSU_TYPE
 

Macro Definition Documentation

#define SSL_INIT_CMD   "SSL"

Definition at line 143 of file read_msu.c.

Function Documentation

static void destroy_ssl_ctx ( struct msu_type UNUSED type)
static

Definition at line 190 of file read_msu.c.

static int handle_accept ( struct read_state read_state,
struct ws_read_state msu_state,
struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 74 of file read_msu.c.

static int handle_read ( struct read_state read_state,
struct ws_read_state msu_state,
struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 41 of file read_msu.c.

static int init_ssl_ctx ( struct msu_type UNUSED type)
static

Definition at line 171 of file read_msu.c.

static int read_http_request ( struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 95 of file read_msu.c.

static void ws_read_destroy ( struct local_msu self)
static

Definition at line 166 of file read_msu.c.

static int ws_read_init ( struct local_msu self,
struct msu_init_data data 
)
static

Definition at line 145 of file read_msu.c.

Variable Documentation

struct msu_type WEBSERVER_READ_MSU_TYPE
Initial value:
= {
.name = "Webserver_read_MSU",
.init_type = init_ssl_ctx,
.destroy_type = destroy_ssl_ctx,
.init = ws_read_init,
.destroy = ws_read_destroy,
.receive = read_http_request
}
static int init_ssl_ctx(struct msu_type UNUSED *type)
Definition: read_msu.c:171
static int ws_read_init(struct local_msu *self, struct msu_init_data *data)
Definition: read_msu.c:145
static void ws_read_destroy(struct local_msu *self)
Definition: read_msu.c:166
static int read_http_request(struct local_msu *self, struct msu_msg *msg)
Definition: read_msu.c:95
#define WEBSERVER_READ_MSU_TYPE_ID
Definition: msu_ids.h:25
int route_to_origin_runtime(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
Routes an MSU message to the runtime on which the message originated.
static void destroy_ssl_ctx(struct msu_type UNUSED *type)
Definition: read_msu.c:190

Definition at line 194 of file read_msu.c.