Embedded TCP/IP stack  3.9.3
Polling Mechanism API

FNET Services polling mechanism API. More...

Detailed Description

FNET Services polling mechanism API.

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_poll_service() API function periodically, during the idle time.

Configuration parameters:

Typedefs

typedef void * fnet_poll_desc_t
 Descriptor of a registered service. More...
 
typedef void(* fnet_poll_service_t) (void *service_param)
 Service callback function prototype. More...
 

Functions

void fnet_poll_service (void)
 Main polling function. More...
 
void fnet_poll_service_release (void)
 Unregisters all registered service routines. More...
 
fnet_poll_desc_t fnet_poll_service_register (fnet_poll_service_t service, void *service_param)
 Registers the service routine in the polling list. More...
 
void fnet_poll_service_unregister (fnet_poll_desc_t desc)
 Unregisters the service routine. More...
 

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