Atrinik Server  4.0
Functions | Variables
http_server.c File Reference
#include <global.h>
#include <http_server.h>
#include <toolkit/process.h>
#include <toolkit/curl.h>
#include <toolkit/packet.h>

Go to the source code of this file.

Functions

 TOOLKIT_API (DEPENDS(process), IMPORTS(logger))
 
static void http_data_cb (process_t *process, uint8_t *data, size_t len)
 
static void http_curl_cb (curl_request_t *request, void *user_data)
 
 TOOLKIT_INIT_FUNC (http_server)
 
TOOLKIT_INIT_FUNC_FINISH TOOLKIT_DEINIT_FUNC (http_server)
 

Variables

static curl_request_t * current_request
 
static pthread_mutex_t request_lock
 

Detailed Description

HTTP server module.

Author
Alex Tokar

Definition in file http_server.c.

Function Documentation

static void http_curl_cb ( curl_request_t *  request,
void *  user_data 
)
static

Definition at line 64 of file http_server.c.

static void http_data_cb ( process_t *  process,
uint8_t *  data,
size_t  len 
)
static

Definition at line 53 of file http_server.c.

TOOLKIT_INIT_FUNC_FINISH TOOLKIT_DEINIT_FUNC ( http_server  )

Deinitialize the HTTP server.

Definition at line 124 of file http_server.c.

TOOLKIT_INIT_FUNC ( http_server  )

Initialize the HTTP server.

Definition at line 85 of file http_server.c.

Variable Documentation

curl_request_t* current_request
static

Current cURL request.

Definition at line 44 of file http_server.c.

pthread_mutex_t request_lock
static

Mutex for the current request pointer.

Definition at line 49 of file http_server.c.