Embedded TCP/IP stack: FNET Service API

FNET

Embedded TCP/IP stack  4.1.0
FNET Service API

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:

#include "fnet.h";
/* Now you can use FNET Services 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_service_poll() API function periodically, during the idle time.

Configuration parameters:

Modules

 HTTP server API
 
 TELNET server API
 
 DHCPv4/BOOTP client API
 
 DHCPv4 server API
 
 DNS client/resolver API
 
 AUTOIP service API
 
 Benchmark server API
 
 Benchmark client API
 
 Link-Detection service API
 
 LLMNR server/responder API
 
 MDNS (Bonjour) server/responder API
 
 PING service API
 
 SNTP client API
 
 TFTP API
 
 TLS API
 
 Flash driver API
 
 File System API
 
 Shell service API
 
 Serial Input/Output library API
 

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