* * $Log$ * *
Definiert in Datei httpserv.c.
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | MY_FSDEV devUrom |
#define | HTTPD_THREAD_STACK 2048 |
#define | EMPTY_GAIN 999 |
Dummy gain. | |
Funktionen | |
static int | StartServiceThread (void) |
static int | CgiStationFavorites (FILE *stream, REQUEST *req) |
Create table of favorites. | |
static int | CgiShoutCastGenres (FILE *stream, REQUEST *req) |
static int | CgiShoutCastStations (FILE *stream, REQUEST *req) |
static int | CgiShoutCastControl (FILE *stream, REQUEST *req) |
static void | AddStationUris (int idx, CONST char *str) |
static int | CgiFavoritesControl (FILE *stream, REQUEST *req) |
static int | CgiSettings (FILE *stream, REQUEST *req) |
static int | CgiVars (FILE *stream, REQUEST *req) |
void | Service (void *arg) |
HTTP service thread. | |
int | HttpServerStart (void) |
HTTP Server Start. | |
Variablen | |
void * | __heap_start |
int | h_timevalid |
static int | httpd_tc |
#define MY_FSDEV devUrom |
#define HTTPD_THREAD_STACK 2048 |
Definiert in Zeile 62 der Datei httpserv.c.
#define EMPTY_GAIN 999 |
Dummy gain.
Used to determine volume field that had been left empty. We can't use zero.
Definiert in Zeile 102 der Datei httpserv.c.
static int StartServiceThread | ( | void | ) | [static] |
Definiert in Zeile 726 der Datei httpserv.c.
Benutzt HTTPD_SERVICE_STACK, httpd_tc und Service().
Wird benutzt von HttpServerStart() und Service().
static int CgiStationFavorites | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Create table of favorites.
Definiert in Zeile 119 der Datei httpserv.c.
Benutzt favlist, LAST_FAVORITE, MAX_FAVORITES und RADIOSTATION::rs_streams.
Wird benutzt von HttpServerStart().
static int CgiShoutCastGenres | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 198 der Datei httpserv.c.
Benutzt ShoutCastGetGenre().
Wird benutzt von HttpServerStart().
static int CgiShoutCastStations | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 242 der Datei httpserv.c.
Benutzt ShoutCastGetStationName().
Wird benutzt von HttpServerStart().
static int CgiShoutCastControl | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 281 der Datei httpserv.c.
Benutzt MAX_FAVORITES, ShoutCastAddStation(), TOP_FAVORITE, webradio und WEBRADIO::wr_favupd.
Wird benutzt von HttpServerStart().
static void AddStationUris | ( | int | idx, | |
CONST char * | str | |||
) | [static] |
Definiert in Zeile 316 der Datei httpserv.c.
Benutzt FavListSet(), LOG_HTTPD und LogMsg().
Wird benutzt von CgiFavoritesControl().
static int CgiFavoritesControl | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 345 der Datei httpserv.c.
Benutzt AddStationUris(), FavListCopy(), FavListSet(), MAX_FAVORITES, TOP_FAVORITE, webradio und WEBRADIO::wr_favupd.
Wird benutzt von HttpServerStart().
static int CgiSettings | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 395 der Datei httpserv.c.
Benutzt ConfigResetFactory(), ConfigSave(), confnet, confos, FavListResetFactory(), FavListSave(), LOG_HTTPD, LogMsg(), NutNetSaveConfig(), NutSaveConfig(), proxy, HTTP_PROXY::proxy_host, HTTP_PROXY::proxy_port, webradio, WEBRADIO::wr_pridns, WEBRADIO::wr_reboot und WEBRADIO::wr_secdns.
Wird benutzt von HttpServerStart().
static int CgiVars | ( | FILE * | stream, | |
REQUEST * | req | |||
) | [static] |
Definiert in Zeile 580 der Datei httpserv.c.
Benutzt RECEIVERINFO::ri_bcast, SHOUTCASTINFO::sci_metaint, SHOUTCASTINFO::sci_metatitle, SHOUTCASTINFO::sci_metaurl, STATIONINFO::si_bitrate, STATIONINFO::si_genre, STATIONINFO::si_name, VERSION, webradio, WEBRADIO::wr_rip und WEBRADIO::wr_sip.
Wird benutzt von HttpServerStart().
Service | ( | void * | arg | ) |
HTTP service thread.
The endless loop in this thread waits for a client connect, processes the HTTP request and disconnects. Nut/Net doesn't support a server backlog. If one client has established a connection, further connect attempts will be rejected. Typically browsers open more than one connection in order to load images concurrently. So we run this routine by several threads.
Definiert in Zeile 662 der Datei httpserv.c.
Benutzt HTTPD_MAX_SEGSIZE, HTTPD_MIN_THREADS, httpd_tc, HTTPD_TCP_BUFSIZE, HTTPD_TCP_PORT, HTTPD_TCP_TIMEOUT, LOG_HTTPD, LOG_WARN, LogMsg(), StartServiceThread() und TcpStreamAccept().
Wird benutzt von StartServiceThread().
int HttpServerStart | ( | void | ) |
void* __heap_start |
int h_timevalid |
int httpd_tc [static] |