summaryrefslogtreecommitdiffstats
path: root/src/handshake.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 14:28:33 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 14:28:33 +0100
commit2c0f4a5abbc5663417d1390f658b387378e28978 (patch)
tree9d5daba9a1713ff8d718c45df48ae844ca611dca /src/handshake.h
parenta9ca525870f29e818935cfbb8977f13a225081be (diff)
downloadfastd-2c0f4a5abbc5663417d1390f658b387378e28978.tar
fastd-2c0f4a5abbc5663417d1390f658b387378e28978.zip
Use fastd_peer_t instead of fastd_peer_config_t in handshake code
Directly using the peers allows us to get rid of the inefficient get_peer() function and is necessary for adding support for unknown peers.
Diffstat (limited to 'src/handshake.h')
-rw-r--r--src/handshake.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.h b/src/handshake.h
index 6799568..67a81fc 100644
--- a/src/handshake.h
+++ b/src/handshake.h
@@ -71,7 +71,7 @@ struct fastd_handshake {
fastd_buffer_t fastd_handshake_new_init(fastd_context_t *ctx, size_t tail_space);
fastd_buffer_t fastd_handshake_new_reply(fastd_context_t *ctx, const fastd_handshake_t *handshake, const fastd_method_t *method, size_t tail_space);
-void fastd_handshake_handle(fastd_context_t *ctx, fastd_socket_t *sock, const fastd_peer_address_t *address, const fastd_peer_config_t *peer_conf, fastd_buffer_t buffer);
+void fastd_handshake_handle(fastd_context_t *ctx, fastd_socket_t *sock, const fastd_peer_address_t *address, fastd_peer_t *peer, fastd_buffer_t buffer);
static inline void fastd_handshake_add(fastd_context_t *ctx, fastd_buffer_t *buffer, fastd_handshake_record_type_t type, size_t len, const void *data) {