2012-01-24 03:19:11 +01:00
|
|
|
/*
|
|
|
|
* tcp_timer.h
|
|
|
|
*
|
|
|
|
* Created on: 21.01.2012
|
|
|
|
* Author: Oliver
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TCP_TIMER_H_
|
|
|
|
#define TCP_TIMER_H_
|
|
|
|
|
2012-02-14 01:37:06 +01:00
|
|
|
#define TCP_TIMER_RESOLUTION 500*1000
|
|
|
|
|
|
|
|
#define SECOND 1000*1000
|
2012-01-24 03:19:11 +01:00
|
|
|
#define TCP_TIMER_STACKSIZE 2048
|
2012-02-14 01:37:06 +01:00
|
|
|
#define TCP_SYN_INITIAL_TIMEOUT 6*SECOND
|
|
|
|
#define TCP_SYN_TIMEOUT 24*SECOND
|
2012-01-24 03:19:11 +01:00
|
|
|
#define TCP_MAX_SYN_RETRIES 3
|
2012-02-14 01:37:06 +01:00
|
|
|
#define TCP_INITIAL_ACK_TIMEOUT 3*SECOND // still static, should be calculated via RTT
|
|
|
|
#define TCP_ACK_MAX_TIMEOUT 30*SECOND // TODO: Set back to 90 Seconds
|
|
|
|
|
|
|
|
#define TCP_ALPHA 1.0f/8.0f
|
|
|
|
#define TCP_BETA 1.0f/4.0f
|
2012-01-24 03:19:11 +01:00
|
|
|
|
|
|
|
#define TCP_NOT_DEFINED 0
|
|
|
|
#define TCP_RETRY 1
|
|
|
|
#define TCP_TIMEOUT 2
|
|
|
|
#define TCP_CONTINUE 3
|
|
|
|
|
|
|
|
void tcp_general_timer(void);
|
|
|
|
|
|
|
|
char tcp_timer_stack[TCP_TIMER_STACKSIZE];
|
|
|
|
|
|
|
|
#endif /* TCP_TIMER_H_ */
|