![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: call_box.h
- Revision:
- 112:6ae726539ab9
- Parent:
- 109:a5b8264ffbbc
- Child:
- 113:db67ae00550e
--- a/call_box.h Tue Apr 07 18:26:21 2015 +0000 +++ b/call_box.h Mon Apr 13 12:16:21 2015 +0000 @@ -27,6 +27,8 @@ #define __CYCLES__ __TIME_TO_REGISTER__ / __RESQUEST_TIME__ // 200 // 3 ~ 66 +#define RTP_REQUEST_PORT_TIMEOUT 45 // 600 // seconds + #define REQUEST_REGISTRY -1 #define REQUEST_PEND -2 #define REQUEST_PING -4 @@ -57,6 +59,7 @@ int ext; // ramal int port; // porta Timer t; + Timer rtp_timer; // usado pra controlar o timeout dos pedidos de porta rtp uint8_t remaining_attempts; float timeout; uint8_t msg_id; @@ -397,5 +400,9 @@ int get_rtp_port ( void ); int print_yourself ( void ); void set_rtp_port ( int ); + void init_rtp_timer ( void ); + void reset_rtp_timer ( void ); + bool is_rtp_timer_timeout ( void ); + int get_rtp_timer ( void ); }; #endif \ No newline at end of file