Embedded TCP/IP stack  4.7.0

◆ fnet_service_register()

fnet_service_desc_t fnet_service_register ( fnet_service_poll_t  service,
void *  service_cookie 
)

Registers the service routine in the polling list.

Parameters
servicePointer to the service-polling routine.
service_cookieService-polling-routine-specific parameter.
Returns
This function returns:
  • Service descriptor, if no error occurs.
  • 0 if an error occurs.
See also
fnet_service_unregister()

This function adds the service routine into the polling list.
This function is usually called during a service initialization. User application should not call this function directly.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net