MityDSP Documentation Index
Public Attributes
tsHttpdParams Interface Reference

#include <lwip/httpd/httpd.h>

List of all members.

Public Attributes

void * user1
char addr [MAX_HTTP_ADDR_LEN]
uint16 port
tsHttpdCgiTablecgi_table
const char * web_directory

Detailed Description

This structure specifies the runtime parameters of the web server. You may specify an optional application specific data pointer which will be returned in tsHttpConn::user1 parameter during CGI function callbacks. You may also specify a TCP port for you web server. Port 80 is typical for web servers but at times an alternative port may be desired. You also specify a table of CGI functions here which the web server will use to render dynamic content.

See also:
HTTPD::run

Member Data Documentation

void* tsHttpdParams::user1

Application provided parameter which is returned in the tsHttpConn parameter of the CGI callback functions. The web server does not use this parameter except to pass back to the application. Typically this will be used to reference back to an application class or structure.

char tsHttpdParams::addr[MAX_HTTP_ADDR_LEN]

IP address of specific network interface to listen on. If this string is empty, the server will listen on all ports as if you had passed INADDR_ANY (0.0.0.0).

uint16 tsHttpdParams::port

The TCP port for the web server to run on. Typically you would set this to the standard web port 80, but occasionally the need arises to use a unique port. If set to 0 the default port 80 will be used

tsHttpdCgiTable* tsHttpdParams::cgi_table

A table specifying all of the custom CGI functions your application provides along with the name of the function as used in the HTML page templates which call these functions. Set this field to NULL if you do not have any CGI functions.

const char* tsHttpdParams::web_directory

Full path to root directory containing all web files, including C: or other filesystem indicator


  
Generated on Mon Apr 22 2013 11:33:33 for MityDSP Net by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.