diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-28 01:05:32 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-28 01:05:32 +0100 |
commit | ac8a726ad658e35cf73d4a62646cbe5ba3e38da4 (patch) | |
tree | 51e034f82db30cd0572d188ae9a2611df18404f1 /src/fastd.h | |
parent | c0f7708f4a36074817556d0966aeb54cc64a5b88 (diff) | |
download | fastd-ac8a726ad658e35cf73d4a62646cbe5ba3e38da4.tar fastd-ac8a726ad658e35cf73d4a62646cbe5ba3e38da4.zip |
Make simple handshake work
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fastd.h b/src/fastd.h index db0190d..2d372a2 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -70,7 +70,6 @@ typedef struct _fastd_peer_config { typedef enum _fastd_peer_state { STATE_WAIT, - STATE_HANDSHAKE_SENT, STATE_ESTABLISHED, } fastd_peer_state; @@ -95,10 +94,10 @@ typedef struct _fastd_method { size_t (*method_max_packet_size)(fastd_context *ctx); - void (*method_init)(fastd_context *ctx, const fastd_peer *peer); + void (*method_init)(fastd_context *ctx, fastd_peer *peer); - void (*method_handle_recv)(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); - void (*method_send)(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); + void (*method_handle_recv)(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); + void (*method_send)(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); } fastd_method; typedef struct _fastd_config { |