summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index 74b1074..108a1c0 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -29,6 +29,13 @@
#include "fastd.h"
+typedef enum fastd_peer_state {
+ STATE_INIT = 0,
+ STATE_RESOLVING,
+ STATE_HANDSHAKE,
+ STATE_ESTABLISHED,
+} fastd_peer_state_t;
+
struct fastd_peer {
uint64_t id;