example_1.c File Reference

Include dependency graph for example_1.c:

Go to the source code of this file.

Functions

int http_nextpage2 (mihl_cnx_t *cnx, char const *tag, char const *host, void *param)
 TBD.
int http_nextpage1 (mihl_cnx_t *cnx, char const *tag, char const *host, void *param)
 TBD.
int http_index (mihl_cnx_t *cnx, char const *tag, char const *host, void *param)
 GET Handler for the URL: /index.html.
int main (int argc, char *argv[])
 Program entry point.


Function Documentation

int http_nextpage2 ( mihl_cnx_t cnx,
char const *  tag,
char const *  host,
void *  param 
)

TBD.

Parameters:
cnx opaque context structure as returned by mihl_init()
tag TBD
host TBD
param User-provided parameter, was provided with mihl_handle_get
Returns:
0

Definition at line 96 of file example_1.c.

References mihl_add(), and mihl_send().

Referenced by http_nextpage1().

Here is the call graph for this function:

Here is the caller graph for this function:

int http_nextpage1 ( mihl_cnx_t cnx,
char const *  tag,
char const *  host,
void *  param 
)

TBD.

Parameters:
cnx opaque context structure as returned by mihl_init()
tag TBD
host TBD
param User-provided parameter, was provided with mihl_handle_get
Returns:
0

Definition at line 119 of file example_1.c.

References http_nextpage2(), mihl_add(), mihl_get_ctx(), mihl_handle_get(), and mihl_send().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int http_index ( mihl_cnx_t cnx,
char const *  tag,
char const *  host,
void *  param 
)

GET Handler for the URL: /index.html.

Parameters:
cnx opaque context structure as returned by mihl_init()
tag TBD
host TBD
param User-provided parameter, was provided with mihl_handle_get
Returns:
0

Definition at line 171 of file example_1.c.

References mihl_add(), mihl_get_ctx(), mihl_handle_get(), mihl_send(), and send_file().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Program entry point.

Parameters:
argc Number of arguments
argv Arguments given on the command line
Returns:
  • 0 if OK
  • or -1 if an error occurred (errno is then set).

Definition at line 255 of file example_1.c.

References http_index(), http_nextpage1(), mihl_handle_file(), mihl_handle_get(), mihl_init(), MIHL_LOG_ERROR, MIHL_LOG_INFO, MIHL_LOG_INFO_VERBOSE, MIHL_LOG_WARNING, and mihl_server().

Here is the call graph for this function:


Generated on Mon May 26 18:06:00 2008 for mihl-example1 by  doxygen 1.5.6