Example #1
0
/*********************************************************************
 * Function:        void StackApplications(void)
 *
 * PreCondition:    StackInit() is already called.
 *
 * Input:           None
 *
 * Output:          Calls all loaded application modules.
 *
 * Side Effects:    None
 *
 * Note:            This function must be called periodically to
 *                  ensure timely responses.
 *
 ********************************************************************/
void StackApplications(void)
{
	#if defined(STACK_USE_HTTP_SERVER) || defined(STACK_USE_HTTP2_SERVER)
	HTTPServer();
	#endif
	
	#if defined(STACK_USE_FTP_SERVER) && defined(STACK_USE_MPFS)
	FTPServer();
	#endif
	
	#if defined(STACK_USE_SNMP_SERVER)
	SNMPTask();
	#endif
	
	#if defined(STACK_USE_ANNOUNCE)
	DiscoveryTask();
	#endif
	
	#if defined(STACK_USE_NBNS)
	NBNSTask();
	#endif
	
	#if defined(STACK_USE_DHCP_SERVER)
	DHCPServerTask();
	#endif
	
	#if defined (STACK_USE_DYNAMICDNS_CLIENT)
	DDNSTask();
	#endif
	
	#if defined(STACK_USE_TELNET_SERVER)
	TelnetTask();
	#endif
	
	#if defined(STACK_USE_REBOOT_SERVER)
	RebootTask();
	#endif
	
	#if defined(STACK_USE_SNTP_CLIENT)
	SNTPClient();
	#endif
	
	#if defined(STACK_USE_UDP_PERFORMANCE_TEST)
	UDPPerformanceTask();
	#endif
	
	#if defined(STACK_USE_TCP_PERFORMANCE_TEST)
	TCPPerformanceTask();
	#endif
	
	#if defined(STACK_USE_SMTP_CLIENT)
	SMTPTask();
	#endif
	
	#if defined(STACK_USE_UART2TCP_BRIDGE)
	UART2TCPBridgeTask();
	#endif
}
Example #2
0
/*********************************************************************
 * Function:        void StackApplications(void)
 *
 * PreCondition:    StackInit() is already called.
 *
 * Input:           None
 *
 * Output:          Calls all loaded application modules.
 *
 * Side Effects:    None
 *
 * Note:            This function must be called periodically to
 *                  ensure timely responses.
 *
 ********************************************************************/
void StackApplications(void)
{
   #if defined(STACK_USE_HTTP2_SERVER)
   HTTPServer();
   #endif
   
   #if defined(STACK_USE_FTP_SERVER) && defined(STACK_USE_MPFS2)
   FTPServer();
   #endif
   
   #if defined(STACK_USE_SNMP_SERVER)
   SNMPTask();
   #endif
   
   #if defined(STACK_USE_ANNOUNCE)
   DiscoveryTask();
   #endif
   
   #if defined(STACK_USE_NBNS)
   NBNSTask();
   #endif
   
   #if defined(STACK_USE_DHCP_SERVER)
   DHCPServerTask();
   #endif
   
   #if defined(STACK_USE_DNS_SERVER)
   DNSServerTask();
   #endif
   
   #if defined (STACK_USE_DYNAMICDNS_CLIENT)
   DDNSTask();
   #endif
   
   #if defined(STACK_USE_TELNET_SERVER)
   TelnetTask();
   #endif
   
   #if defined(STACK_USE_REBOOT_SERVER)
   RebootTask();
   #endif
   
   #if defined(STACK_USE_SNTP_CLIENT)
   SNTPClient();
   #endif

   #if defined(STACK_USE_UDP_PERFORMANCE_TEST)
   UDPPerformanceTask();
   #endif
   
   #if defined(STACK_USE_TCP_PERFORMANCE_TEST)
   TCPPerformanceTask();
   #endif
   
   #if defined(STACK_USE_SMTP_CLIENT)
   SMTPTask();
   #endif
   
   #if defined(STACK_USE_UART2TCP_BRIDGE)
   UART2TCPBridgeTask();
   #endif

   #if defined(STACK_USE_CCS_SMTP)
   SMTPTask();
   #endif   

   #if defined(STACK_USE_CCS_SNTP_CLIENT)
   NTPTask();
   #endif

   #if defined(STACK_USE_CCS_HTTP1_SERVER) || defined(STACK_USE_CCS_HTTP2_SERVER)
   HTTPServer();
   #endif
   
   #if defined(STACK_USE_CCS_TFTP_SERVER)
   TFTPSTask();
   #endif

   #if defined(STACK_USE_TWITTER)   //should be renamed STACK_USE_CCS_TWITTER
   TwitterTask();         // processes TCP tasks including the Tweet tasks
   #endif   
}