From 3c83faaa1660a70932c14b0fb1f9175b531cdf10 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Apr 2012 01:28:34 +0200 Subject: Add sending of keep-alive packets --- src/task.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/task.h') diff --git a/src/task.h b/src/task.h index 312c8f9..259ccfc 100644 --- a/src/task.h +++ b/src/task.h @@ -37,6 +37,7 @@ typedef enum _fastd_task_type { TASK_SEND, TASK_HANDLE_RECV, TASK_HANDSHAKE, + TASK_KEEPALIVE, } fastd_task_type; typedef struct _fastd_task_any { @@ -77,9 +78,11 @@ void fastd_task_put_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buff void fastd_task_put_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void fastd_task_schedule_handshake(fastd_context *ctx, fastd_peer *peer, int timeout); +void fastd_task_schedule_keepalive(fastd_context *ctx, fastd_peer *peer, int timeout); void fastd_task_replace_peer(fastd_context *ctx, fastd_peer *old_peer, fastd_peer *new_peer); void fastd_task_delete_peer(fastd_context *ctx, fastd_peer *peer); void fastd_task_delete_peer_handshakes(fastd_context *ctx, fastd_peer *peer); +void fastd_task_delete_peer_keepalives(fastd_context *ctx, fastd_peer *peer); #endif /* _FASTD_TASK_H_ */ -- cgit v1.2.3