From ac8a726ad658e35cf73d4a62646cbe5ba3e38da4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 28 Feb 2012 01:05:32 +0100 Subject: Make simple handshake work --- src/fastd.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/fastd.h') 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 { -- cgit v1.2.3