Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Bonjour by
Stack-internal timers implementation. More...
Go to the source code of this file.
Functions | |
static void | tcpip_tcp_timer (void *arg) |
Timer callback function that calls tcp_tmr() and reschedules itself. | |
void | tcp_timer_needed (void) |
Called from TCP_REG when registering a new PCB: the reason is to have the TCP timer only running when there are active (or time-wait) PCBs. | |
static void | ip_reass_timer (void *arg) |
Timer callback function that calls ip_reass_tmr() and reschedules itself. | |
static void | arp_timer (void *arg) |
Timer callback function that calls etharp_tmr() and reschedules itself. | |
static void | dhcp_timer_coarse (void *arg) |
Timer callback function that calls dhcp_coarse_tmr() and reschedules itself. | |
static void | dhcp_timer_fine (void *arg) |
Timer callback function that calls dhcp_fine_tmr() and reschedules itself. | |
static void | autoip_timer (void *arg) |
Timer callback function that calls autoip_tmr() and reschedules itself. | |
static void | igmp_timer (void *arg) |
Timer callback function that calls igmp_tmr() and reschedules itself. | |
static void | dns_timer (void *arg) |
Timer callback function that calls dns_tmr() and reschedules itself. | |
void | sys_timeouts_init (void) |
Initialize this module. | |
void | sys_timeout_debug (u32_t msecs, sys_timeout_handler h, void *arg, const char *handler_name) void sys_timeout(u32_t msecs |
Create a one-shot timer (aka timeout). | |
Variables | |
static struct sys_timeo * | next_timeout |
The one and only timeout list. | |
static int | tcpip_tcp_timer_active |
global variable that shows if the tcp timer is currently scheduled or not |
Detailed Description
Stack-internal timers implementation.
This file includes timer callbacks for stack-internal timers as well as functions to set up or stop timers and check for expired timers.
Definition in file timers.cpp.
Function Documentation
static void arp_timer | ( | void * | arg ) | [static] |
Timer callback function that calls etharp_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 130 of file timers.cpp.
static void autoip_timer | ( | void * | arg ) | [static] |
Timer callback function that calls autoip_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 176 of file timers.cpp.
static void dhcp_timer_coarse | ( | void * | arg ) | [static] |
Timer callback function that calls dhcp_coarse_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 146 of file timers.cpp.
static void dhcp_timer_fine | ( | void * | arg ) | [static] |
Timer callback function that calls dhcp_fine_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 160 of file timers.cpp.
static void dns_timer | ( | void * | arg ) | [static] |
Timer callback function that calls dns_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 208 of file timers.cpp.
static void igmp_timer | ( | void * | arg ) | [static] |
Timer callback function that calls igmp_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 192 of file timers.cpp.
static void ip_reass_timer | ( | void * | arg ) | [static] |
Timer callback function that calls ip_reass_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 114 of file timers.cpp.
void sys_timeout_debug | ( | u32_t | msecs, |
sys_timeout_handler | h, | ||
void * | arg, | ||
const char * | handler_name | ||
) |
Create a one-shot timer (aka timeout).
Timeouts are processed in the following cases:
- while waiting for a message using sys_timeouts_mbox_fetch()
- by calling sys_check_timeouts() (NO_SYS==1 only)
- Parameters:
-
msecs time in milliseconds after that the timer should expire h callback function to call when msecs have elapsed arg argument to pass to the callback function
void sys_timeouts_init | ( | void | ) |
Initialize this module.
Definition at line 218 of file timers.cpp.
void tcp_timer_needed | ( | void | ) |
Called from TCP_REG when registering a new PCB: the reason is to have the TCP timer only running when there are active (or time-wait) PCBs.
External function (implemented in timers.c), called when TCP detects that a timer is needed (i.e.
Definition at line 96 of file timers.cpp.
static void tcpip_tcp_timer | ( | void * | arg ) | [static] |
Timer callback function that calls tcp_tmr() and reschedules itself.
- Parameters:
-
arg unused argument
Definition at line 74 of file timers.cpp.
Variable Documentation
struct sys_timeo* next_timeout [static] |
The one and only timeout list.
Definition at line 59 of file timers.cpp.
int tcpip_tcp_timer_active [static] |
global variable that shows if the tcp timer is currently scheduled or not
Definition at line 66 of file timers.cpp.
Generated on Tue Jul 12 2022 18:11:34 by
