File nut/app/httpd/httpserv.c


Included Files


Preprocessor definitions

#define NUT_THREAD_MAINSTACK 1024

#define HTTPD_SERVICE_STACK


External Variables

tcpSocketList
extern TCPSOCKET* tcpSocketList

Local Variables

html_mt
static char* html_mt
Used in: StartPage()  

Global Function Fatal()

void Fatal ( char* msg )
Prototyped in: nut/app/httpd/httpserv.c
Calls: puts()
Called by: NutAppMain() nut/app/httpd/httpserv.c

Global Function NutAppMain()

int NutAppMain ( void )
Calls: Fatal() nut/app/httpd/httpserv.c
  NutDhcpIfConfig(), NutRegisterAsp(), NutRegisterAspCallback(), NutRegisterAuth(), NutRegisterCgi(), NutRegisterCgiBinPath(), NutRegisterDevice(), NutRegisterSsi(), NutSleep(), NutThreadCreate(), NutVersionString(), _fileno(), _ioctl(), freopen(), inet_ntoa(), printf()
References Functions: ASPCallback() nut/app/httpd/httpserv.c
  SSIDemoCGI() nut/app/httpd/httpserv.c
  Service() nut/app/httpd/httpserv.c
  ShowForm() nut/app/httpd/httpserv.c
  ShowQuery() nut/app/httpd/httpserv.c
  ShowSockets() nut/app/httpd/httpserv.c
  ShowThreads() nut/app/httpd/httpserv.c
  ShowTimers() nut/app/httpd/httpserv.c

Global Function SSIDemoCGI()

int SSIDemoCGI ( FILE* stream, REQUEST* req )
Calls: PrintDate() nut/app/httpd/httpserv.c
  PrintTime() nut/app/httpd/httpserv.c
  NutHttpGetParameterCount(), NutHttpGetParameterName(), NutHttpGetParameterValue(), fflush(), fprintf(), fputs()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Global Function Service()

void Service ( void* arg )
Prototyped in: nut/app/httpd/httpserv.c
Calls: NutHeapRootAvailable(), NutHttpProcessRequest(), NutSleep(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), _fdopen(), fclose(), printf()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Global Function ShowForm()

int ShowForm ( FILE* stream, REQUEST* req )
Calls: StartPage() nut/app/httpd/httpserv.c
  NutHttpGetParameterCount(), NutHttpGetParameterName(), NutHttpGetParameterValue(), fflush(), fprintf(), fputs()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Local Function ASPCallback()

static int ASPCallback ( char* pASPFunction, FILE* stream )
Calls: PrintDate() nut/app/httpd/httpserv.c
  PrintTime() nut/app/httpd/httpserv.c
  strcmp()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Local Function PrintDate()

static void PrintDate ( FILE* stream )
Calls: fprintf(), localtime(), time()
Called by: ASPCallback() nut/app/httpd/httpserv.c
  SSIDemoCGI() nut/app/httpd/httpserv.c

Local Function PrintTime()

static void PrintTime ( FILE* stream )
Calls: fprintf(), localtime(), time()
Called by: ASPCallback() nut/app/httpd/httpserv.c
  SSIDemoCGI() nut/app/httpd/httpserv.c

Local Function ShowQuery()

static int ShowQuery ( FILE* stream, REQUEST* req )
Calls: StartPage() nut/app/httpd/httpserv.c
  fflush(), fprintf(), fputs()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Local Function ShowSockets()

static int ShowSockets ( FILE* stream, REQUEST* req )
Calls: StartPage() nut/app/httpd/httpserv.c
  StartTable() nut/app/httpd/httpserv.c
  __byte_swap2(), calloc(), fflush(), fprintf(), fputs(), free(), inet_ntoa(), memcpy()
Used in: NutAppMain() nut/app/httpd/httpserv.c
References Variables: tcpSocketList

Local Function ShowThreads()

static int ShowThreads ( FILE* stream, REQUEST* req )
Calls: StartPage() nut/app/httpd/httpserv.c
  StartTable() nut/app/httpd/httpserv.c
  calloc(), fflush(), fprintf(), fputs(), free(), memcpy()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Local Function ShowTimers()

static int ShowTimers ( FILE* stream, REQUEST* req )
Calls: StartPage() nut/app/httpd/httpserv.c
  StartTable() nut/app/httpd/httpserv.c
  calloc(), fflush(), fprintf(), fputs(), free(), memcpy()
Used in: NutAppMain() nut/app/httpd/httpserv.c

Local Function StartPage()

static void StartPage ( FILE* stream, REQUEST* req, const char* title )
Calls: NutHttpSendHeaderBottom(), NutHttpSendHeaderTop(), fprintf()
Called by: ShowForm() nut/app/httpd/httpserv.c
  ShowQuery() nut/app/httpd/httpserv.c
  ShowSockets() nut/app/httpd/httpserv.c
  ShowThreads() nut/app/httpd/httpserv.c
  ShowTimers() nut/app/httpd/httpserv.c
References Variables: html_mt nut/app/httpd/httpserv.c

Local Function StartTable()

static void StartTable ( FILE* stream, ... )
Calls: __builtin_va_arg(), __builtin_va_end(), __builtin_va_start(), fprintf(), fputs()
Called by: ShowSockets() nut/app/httpd/httpserv.c
  ShowThreads() nut/app/httpd/httpserv.c
  ShowTimers() nut/app/httpd/httpserv.c