Embedded TCP/IP stack: fnet_http_init

FNET

fnet_http_desc_t fnet_http_init ( struct fnet_http_params params)

Initializes the HTTP Server service.

Parameters
paramsInitialization parameters defined by fnet_http_params.
Returns
This function returns:
  • HTTP server descriptor if no error occurs.
  • 0 if an error occurs.
See also
fnet_http_release()

This function initializes the HTTP server service. It allocates all resources needed, and registers the HTTP server service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the HTTP server in background.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net