Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
static-files.c File Reference

HTTP Static files server. More...

#include <getopt.h>
#include <stdio.h>
#include <string.h>
#include "soletta.h"
#include "sol-http.h"
#include "sol-http-server.h"

Functions

static void shutdown_server (void)
 
 SOL_MAIN_DEFAULT (startup_server, shutdown_server)
 
static void startup_server (void)
 

Variables

static struct sol_http_serverserver
 

Detailed Description

HTTP Static files server.

Sample static files server. The path used to look for the files should be given as argument when launching this sample. To see the usage help, -h or –help.

Function Documentation

static void shutdown_server ( void  )
static

References server, and sol_http_server_del().

SOL_MAIN_DEFAULT ( startup_server  ,
shutdown_server   
)
static void startup_server ( void  )
static

Variable Documentation

struct sol_http_server* server
static

Referenced by shutdown_server(), and startup_server().