diff options
Diffstat (limited to 'ecp/src/ecp/timer.h')
-rw-r--r-- | ecp/src/ecp/timer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp/src/ecp/timer.h b/ecp/src/ecp/timer.h index 9079a5e..2ac9173 100644 --- a/ecp/src/ecp/timer.h +++ b/ecp/src/ecp/timer.h @@ -9,6 +9,7 @@ typedef ssize_t (*ecp_timer_retry_t) (struct ECPConnection *, struct ECPTimerIte typedef struct ECPTimerItem { struct ECPConnection *conn; unsigned char mtype; + unsigned char frag_cnt; unsigned short cnt; ecp_sts_t abstime; ecp_sts_t timeout; @@ -27,7 +28,7 @@ int ecp_timer_create(ECPTimer *timer); void ecp_timer_destroy(ECPTimer *timer); void ecp_timer_item_init(ECPTimerItem *ti, struct ECPConnection *conn, unsigned char mtype, ecp_timer_retry_t retry_f, unsigned short cnt, ecp_sts_t timeout); int ecp_timer_push(ECPTimerItem *ti); -void ecp_timer_pop(struct ECPConnection *conn, unsigned char mtype); +void ecp_timer_pop(struct ECPConnection *conn, unsigned char mtype, unsigned char frag_tot); void ecp_timer_remove(struct ECPConnection *conn); ecp_sts_t ecp_timer_exe(struct ECPSocket *sock); ssize_t ecp_timer_send(struct ECPConnection *conn, ecp_timer_retry_t send_f, unsigned char mtype, unsigned short cnt, ecp_sts_t timeout); |