diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-02 01:28:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-02 01:28:34 +0200 |
commit | 3c83faaa1660a70932c14b0fb1f9175b531cdf10 (patch) | |
tree | 920f34939c1cabafed056bbd6f51898991616e85 /src/task.h | |
parent | 9e45032bd53d07e78c2ec41f1ae9d0d75e4910ce (diff) | |
download | fastd-3c83faaa1660a70932c14b0fb1f9175b531cdf10.tar fastd-3c83faaa1660a70932c14b0fb1f9175b531cdf10.zip |
Add sending of keep-alive packets
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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_ */ |