Embedded TCP/IP stack
4.1.0
|
Detailed Description
Services are built on top of the core FNET TCP/IP stack.
Their use is purely optional, user may completely recreate the same functionality with an application-level code.
To gain access to the FNET TCP/IP service API, the application only needs to include the main header file fnet.h:
The polling mechanism enables the execution of registered services (DHCP client, TFTP client, Shell, Telnet server or HTTP server) in "background" - during the application idle time. Typically, the polling callback is registered during the service initialization (for example the fnet_http_init() or other service initialization function). In order to make the polling mechanism work, the user application should call the fnet_service_poll() API function periodically, during the idle time.
Configuration parameters:
Typedefs | |
typedef void * | fnet_service_desc_t |
Descriptor of a registered service. More... | |
typedef void(* | fnet_service_poll_t) (void *service_cookie) |
Service callback function prototype. More... | |
Functions | |
void | fnet_service_poll (void) |
Service polling function. More... | |
fnet_service_desc_t | fnet_service_register (fnet_service_poll_t service, void *service_cookie) |
Registers the service routine in the polling list. More... | |
void | fnet_service_unregister (fnet_service_desc_t desc) |
Unregisters the service routine. More... | |
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net